Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set column title in infragistics datagrid

How do i change the name of a column with C#? The datagrid is being populated with a Dictionary, and it defaults the title to be Value.

Cheers

like image 584
User10 Avatar asked Nov 04 '25 16:11

User10


1 Answers

foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn column in e.Layout.Bands[0].Columns)
{
    if(NamesEqual(column.Key, "ID"))
    {
        column.Header.Caption = "MyNewColumnName";
    }
}
like image 165
tsells Avatar answered Nov 07 '25 09:11

tsells



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!