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.

change column header name in MultiColumnComboBox

Thread ID:

Created:

Updated:

Platform:

Replies:

73256 Apr 28,2008 12:49 AM Apr 28,2008 07:11 AM Windows Forms 1
loading
Tags: Tools
Nalin
Asked On April 28, 2008 12:49 AM

How do I change column header name in MultiColumnComboBox control


Administrator [Syncfusion]
Replied On April 28, 2008 07:11 AM

Hi Nalin,

Thank you for using Syncfusion products.

MultiColumnComboBox - Changing HeaderText.

You can change the text of column header in MultiColoumComboBox using QueryCellInfo event handler. The following code snippet illustrates this.

C#

this.multiColumnComboBox1.ListBox.Grid.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(Grid_QueryCellInfo);
}

void Grid_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
//Check for column header row
if (e.RowIndex == 0)
{
//Check for particular column
switch (e.ColIndex)
{
case 1:
e.Style.Text = "Column 1";
break;
case 2:
e.Style.Text = "Column 2";
break;

case 3:
e.Style.Text = "Column 3";
break;
}
}
}


Sample

http://websamples.syncfusion.com/samples/Tools.Windows/F73256/main.htm

Please let me know if this helps you.

Regards,
Jaya



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.

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.

;