如何设置datagridview的行高
vs2005下
如何设置datagridview的行高
试过:
DataGridViewRow row = this.dataGridView1.RowTemplate;
row.Height = 100;
row.MinimumHeight = 20;
没有任何应?
[解决办法]
参考如下的代码:
this.dataGridView1.Rows[0].Height = 200;
[解决办法]
可以设置索引为Index的行的高度为height:
this.dataGridView1.Rows[index].Height = height;