2010-04-28 38 views

回答

1

循環遍歷行並改變它,例如:

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

比循環可用於在網格WPF設置行高度此事件。

私人無效dataGrid1_LoadingRow(對象發件人,DataGridRowEventArgs E)

{ 
     e.Row.Height = 100.00; 
    } 
相關問題