日期:2014-05-19  浏览次数:20970 次

如何设置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;