Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

True grid events

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
I hate to ask a vendor specific question on the forum but I'm wasting valueable time trying to find something that has to be very simple. When someone clicks a row in a true dbgrid - how does one determine the contents in cell x of that row?
 

Ok. I guess I have to answer my own questions: Here is the answer for anyone finding this in the future.

Private Sub C1TrueDBGrid1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles C1TrueDBGrid1.DoubleClick

dim introw as integer
intRow = C1TrueDBGrid1.SelectedRows.IndexOf(0)

MsgBox(C1TrueDBGrid1.Item(intRow, 2))

I don't know if you can use the click event to do this. The selected row value did not seem to change when I used Click. So click to set the row and double click to get the info on which rows was double clicked.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top