[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

setting tag info for datagridviewrows

I am trying to set the tag info for each row in my datagridview.  The problem is that when I place my mouse over the row no tag appears.  Even if I don't try and set the tag value the tag still doesn't appear when I place my mouse over it.  What am I doing wrong?  Here is my code.

        For Each row In Me.DataGridView1.Rows
             row.tag="some info"
        Next
0
NevSoFly
Asked:
NevSoFly
  • 2
  • 2
1 Solution
 
Bob LearnedCommented:
Are you trying to display a tool tip for each row?  If so, you need to use a ToolTip extender provider to allow you to display tool tip text.

The .Tag property is a generic property for storing information.

Bob
0
 
NevSoFlyAuthor Commented:
I am trying to display extra data about the record in the datagridview.  So yes I guess I am trying to display a tool tip.
0
 
Bob LearnedCommented:
The cell has the ToolTipText property that you can set.  You can't set it for a column or a row.

Bob
0
 
NevSoFlyAuthor Commented:
Once agian, thanks.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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