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
close icon

Column Header Tooltip

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

Regards
Tannearu Hazarathaiah Gupta

1 Reply

AD Administrator Syncfusion Team November 30, 2006 10:49 AM UTC

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

Best Regards,
Haneef.

Loader.
Live Chat Icon For mobile
Up arrow icon