Jennifer84 0 Posting Pro

I have a GridViewControl on my Form in C++ .NET. I have put values to Rows and Columns like this: (3 columns and 5 rows)

1 a f
2 b g
3 c h
4 d i
5 e j

What I wonder here is if I click with my mousecursor on the 3:rd row wich could be either in cell that contains: 3, c or h.

Is it possible to return the rownumber wich is 3 in these cases. So it doesn´t matter in wich cell on the 3:rd row I click.
Is there any syntax that can return the rownumber when selected with the cursor ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.