Link to home
Start Free TrialLog in
Avatar of michellechan57
michellechan57

asked on

DataGridView Hint

How can I display a hint or message or tooltip when the mouse is pointed at the row header instead of the cell?
Avatar of SystemExpert
SystemExpert
Flag of United States of America image

Hi

rerad this and conver it in c#

Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As  
                      System.Web.UI.WebControls.DataGridItemEventArgs)  Handles DataGrid1.ItemCreated
 
    If e.Item.ItemType = ListItemType.Header Then
            e.item.cells(0).Tooltip = "Name"
            e.item.cells(1).Tooltip = "Age"

    end if

End Sub


=============
ref : http://www.extremeexperts.com/Net/CodeSnippets/ToolTipForDataGridHeader.aspx

thanks
ASKER CERTIFIED SOLUTION
Avatar of SystemExpert
SystemExpert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of michellechan57
michellechan57

ASKER

Hi SystemExpert, thanks for your response.
Sorry for not being specific - I need solution for VS2005, C# windows form - DataGridView control.
I could not find ItemCreated event in DataGridView.
Thanks.