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.zipBest Regards,
Haneef