Hi,
I am using BindingList (which has collection of object classes) as datasource to the grid.
And the column header in text is picking value from the Public properties in the class.
Is there a way i can change the column header txt .
You may set the header text to any value by using the Header.Caption property of the column. You may set it in InitializeLayout of the grid using code similar to:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["ID"].Header.Caption = "My ID Column"; }
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
e.Layout.Bands[0].Columns["ID"].Header.Caption = "My ID Column";
}
Thanks
Vaibhav