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

Column Header Tooltip

Thread ID:

Created:

Updated:

Platform:

Replies:

52554 Nov 30,2006 09:56 AM UTC Nov 30,2006 10:49 AM UTC WinForms 1
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 30, 2006 09:56 AM UTC

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

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

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

;