We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

MultiColumnComboBox Column Header Text

Is there a way to change the Header Text of a MultiColumnComboBox grid''s column. Thanks in advance

3 Replies

AD Administrator Syncfusion Team July 28, 2004 01:42 PM UTC

Hi, The MultiColumnComboBox.ListBox returns the GridListControl associated with it. You could handle the GridListControl.Grid''s PrepareViewStyleInfo event and set e.Style.Text for the appropriate e.ColIndex and e.RowIndex (coordinates that point to the header cell) values for the cell. GridListControl gcontrol = this.multiColumnBoundCombo.ListControl as GridListControl; gcontrol.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(grid_PrepareViewStyleInfo); private void grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex == 1 && e.RowIndex == 0) { e.Style.Text = "My Custom Header"; } } Please refer to the complete_sample attached here that illustrates the above and let me know if this meets your requirements. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

AD Administrator Syncfusion Team June 14, 2006 03:21 PM UTC

Is it possible to set column header text without handling events.

AR Anupama Roy Syncfusion Team June 15, 2006 06:50 AM UTC

Hi Shankar, Sorry for any inconvienience caused. It is not possible to set column header text without handling events. Thanks, Anu.

Live Chat Icon For mobile
Up arrow icon