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