This is a migrated thread and some comments may be shown as answers.

gridviewcolumngroup headers wrapping text

1 Answer 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 11 Apr 2011, 04:33 PM
The gridviewcolumngroupheaders are wrapping texts. While this is ideal, it does not expose a property or method to show tool or screen tips with the full text on mouse over. In the attached image, (Q1) - Spontaneous Awareness -  is actually (Q1) - Spontaneous Awareness - First Mention

Thanks
Deepak

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Apr 2011, 11:42 AM
Hi Deepak,

You can use the ToolTipNeeded event to provide a tooltip for your header.

private void radGridView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    GridHeaderCellElement headerCell = sender as GridHeaderCellElement;
    if (headerCell != null)
    { e.ToolTipText = headerCell.Text; }
}

Hope that helps
Richard
Tags
GridView
Asked by
Deepak
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or