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
419
column chooser contents
posted

I am assigning a List<UserObj> as the datasource to the grid, in the column chooser i get this. I understand that by changing the caption on the columns, i could control what user sees in the column chooser. Likewise when i have hierarchical data, i want to also be able to change the names visible for the bands. In the above case i want to be able to change the 'List '1' to a different text.  Could anyone help me get there please ? 

  • 469350
    Suggested Answer
    Offline posted

    The text displayed here is the Caption of the band. Since you have not set a caption, it uses the Key.

    So just set the band header caption:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {        
                e.Layout.Bands[0].Header.Caption = "Band 0";
            }