Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 865
  • Last Modified:

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?
0
michellechan57
Asked:
michellechan57
  • 2
1 Solution
 
SystemExpertCommented:
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
0
 
SystemExpertCommented:
Hi

And This is what you want
and it's with C#


http://www.netomatix.com/GridToolTip.aspx

Thanks
0
 
michellechan57Author Commented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now