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.

Column Header Tooltip

Thread ID:





52554 Nov 30,2006 04:56 AM Nov 30,2006 05:49 AM Windows Forms 1
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 30, 2006 04:56 AM

We are using Grid Grouping Control.

The 'Column Headers' Should Contain the abbreviated column name. The full column name should be displayed as a 'tool tip' when the user place their pointer over the column Header.

Please resolve the problem ASAP.

Tannearu Hazarathaiah Gupta

Administrator [Syncfusion]
Replied On November 30, 2006 05:49 AM

Hi Tannearu,

To show the Abbreviated Header cell tooltip text in a grid, you must set the ExtendedText property of the GridTextExtender. Andalso you need to handle the TableControl.MouseMove event to show the Tooltip. You can copy the modified ToolTipExtGrid.GridTextExtender class and add to your application. Please refer to the attached sample for implementation.

m_oGridTextExtender = new ToolTipExtGrid.GridTextExtender(this);
//Enable the ToolTip.
m_oGridTextExtender.ShowHeaderToolTip = true;

for(int i = 0;i < 5;i++)
table.Add(i + 1,"Your Abbreviated ColumnName here..");
//you must the set the ExtendedHeaderText for displaying the Abbreviated column name.
m_oGridTextExtender.ExtendedHeaderText = table;

//Subscribe the MouseMove event to show the tooltip.
this.gridGroupingControl1.TableControl.MouseMove +=new MouseEventHandler(TableControl_MouseMove);

private void TableControl_MouseMove(object sender, MouseEventArgs e)
m_oGridTextExtender.Show( (sender as GridTableControl) , new Point(e.X, e.Y));

Here is a sample.

Best Regards,


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.