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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MultiColumnComboBox Column Header Text

Thread ID:

Created:

Updated:

Platform:

Replies:

16971 Jul 28,2004 11:19 AM UTC Jun 15,2006 06:50 AM UTC WinForms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On July 28, 2004 11:19 AM UTC

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 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.

Administrator [Syncfusion]
Replied On June 14, 2006 03:21 PM UTC

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

Anupama Roy [Syncfusion]
Replied On 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.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;