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.
Unfortunately, activation email could not send to your email. Please try again.

MultiColumnComboBox Column Header Text

Thread ID:





16971 Jul 28,2004 07:19 AM Jun 15,2006 02:50 AM Windows Forms 3
Tags: Tools
Administrator [Syncfusion]
Asked On July 28, 2004 07:19 AM

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

Administrator [Syncfusion]
Replied On July 28, 2004 09:42 AM

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.

Administrator [Syncfusion]
Replied On June 14, 2006 11:21 AM

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

Anupama Roy [Syncfusion]
Replied On June 15, 2006 02:50 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.