Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
How to change the column header text
posted

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 .

 

Parents
  • 370
    Suggested Answer
    posted

    Hi,

    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";

            }

     

    Thanks 

    Vaibhav

Reply Children