Column Header Tooltip

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

6 Replies

AD Administrator Syncfusion Team November 24, 2006 11:09 AM UTC

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


TH Tannearu Hazarathaiah Gupta November 29, 2006 09:21 AM UTC

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


AD Administrator Syncfusion Team November 29, 2006 10:11 AM UTC

Hi Tannearu,

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

Best Regards,
Haneef


TH Tannearu Hazarathaiah Gupta November 29, 2006 10:18 AM UTC

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


AD Administrator Syncfusion Team November 29, 2006 11:12 AM UTC

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


TH Tannearu Hazarathaiah Gupta November 29, 2006 12:02 PM UTC

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

Regards
Tannearu Gupta

Loader.
Up arrow icon