2010-04-28 85 views

回答

1

循环遍历行并改变它,例如:

foreach (DataGridViewRow row in dataGridView1.Rows) 
{ 
    row.Height -= 2; 
} 
0
其他

比循环可用于在网格WPF设置行高度此事件。

私人无效dataGrid1_LoadingRow(对象发件人,DataGridRowEventArgs E)

{ 
     e.Row.Height = 100.00; 
    }