簡體   English   中英

如何在C#.net中的運行時在datagrid中調整行高?

[英]How to adjust row height in datagrid at runtime in C# .net?

如何在C#.net中的運行時在datagrid中調整行高?

循環瀏覽並更改行,例如:

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

除了循環外,此事件可用於在WPF網格中設置行高。

私有void dataGrid1_LoadingRow(對象發送者,DataGridRowEventArgs e)

    {
        e.Row.Height = 100.00;
    }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM