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:

Created:

Updated:

Platform:

Replies:

52264 Nov 24,2006 04:38 AM Nov 29,2006 07:02 AM Windows Forms 6
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 24, 2006 04:38 AM

HI,
We are using Grid Data Bound Grid.

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 24, 2006 06:09 AM

Hi Tannearu,

Use the GridTextExtender.ShowHeaderToolTip property to show/hide the column header tooltip in a grid. And also you need to set the ExtendedText hashtable for displaying abbreviated column name in a grid. Here is a code snippet to show this.

m_oGridTextExtender.ShowHeaderToolTip = true;

Hashtable table = new Hashtable();
for(int i = 0;i < this.gridDataBoundGrid1.Model.ColCount;i++)
table.Add(i + 1,string.Format( "Column {0} is : {1}",i+1,"YourToolTipTextHere..."));
m_oGridTextExtender.ExtendedHeaderText = table;

Here is a sample.
GDBGHeaderToolTip.zip

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 29, 2006 04:21 AM

Hi haneef,
Its not working. When i am trying to add


m_oGridTextExtender.ShowHeaderToolTip = true;

its giving following error.

ToolTipExtGrid.GridTextExtender' does not contain a definition for 'ShowHeaderToolTip'


Please resolve the problem asap

Cheers
Tannearu


>Hi Tannearu,

Use the GridTextExtender.ShowHeaderToolTip property to show/hide the column header tooltip in a grid. And also you need to set the ExtendedText hashtable for displaying abbreviated column name in a grid. Here is a code snippet to show this.

m_oGridTextExtender.ShowHeaderToolTip = true;

Hashtable table = new Hashtable();
for(int i = 0;i < this.gridDataBoundGrid1.Model.ColCount;i++)
table.Add(i + 1,string.Format( "Column {0} is : {1}",i+1,"YourToolTipTextHere..."));
m_oGridTextExtender.ExtendedHeaderText = table;

Here is a sample.
GDBGHeaderToolTip.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On November 29, 2006 05:11 AM

Hi Tannearu,

Use this modified ToolTipExtGrid.GridTextExtender class to your application and let me know if this helps.

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 29, 2006 05:18 AM

Hi haneef,
Thanks for your valuable respose.

But i need following solution.


The ‘column headers’ should contain the abbreviated column name, the full column name should be displayed as a ‘tool tip’ when the user places their pointer over the column header

Please resolve the problem asap.


Regards
Tannearu Gupta

Administrator [Syncfusion]
Replied On November 29, 2006 06:12 AM

Hi Tannearu,

To show the Abbreviated Header cell tooltip text in a grid, you must set the ExtendedText property of the GridTextExtender. Here is a code snippet to show this.

m_oGridTextExtender.ShowHeaderToolTip = true;

Hashtable table = new Hashtable();

for(int i = 0;i < this.gridDataBoundGrid1.Model.ColCount;i++)
{
table.Add(i + 1," Yourabbreviated column nameHere...");
}

//you need to set the ExtendedHeaderText property for displaying the abbreviated column name.
m_oGridTextExtender.ExtendedHeaderText = table;

Please refer to the attached sample for implementation.
GDBGHederTextTooltip.zip

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 29, 2006 07:02 AM

HI Haneef,
Its working. I posted one more query about printing gridData bounfd Grid. Please resolve the problem asap.

Regards
Tannearu Gupta

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.

;