2024-10-02 00:51:31
dataGridView1.RowsDefaultCellStyle.WrapMode = true;
//这里报错了 显示无法将类型“bool”隐式转换为“System.Windows.Forms.DataGridViewTriState”
还有事这三个属性都设置还是设置一个就可以了?
三行都要
dataGridView1.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True;
this.dataGridView1.AllowUserToResizeRows = true;
this.dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
2024-10-02 00:02:58