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

how do i create a tool tip over column header

1 Answer 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
randall
Top achievements
Rank 1
randall asked on 11 Mar 2010, 08:09 AM
hi, I want to have a tool tip...or just description that pops up when the mouse is hovered over a column header on the winform gridview
can someone point me in the right direction, or show an example....
thanks

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 15 Mar 2010, 04:27 PM
Hi randall,

Thank you for writing. You can set a tool tip in header cell by using ToolTipTextNeeded event. Please, consider the following code:
private void radGridView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    if (sender is GridHeaderCellElement)
    {
        e.ToolTipText = ((GridHeaderCellElement)sender).Text;
    }
}

I hope this helps. Let me know if you have any other questions.

Best wishes,
Martin Vasilev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
randall
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or