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!

Datagrid click event, dbclick event.

Status
Not open for further replies.

RSX02

Programmer
May 15, 2003
467
CA
Hi
I have a datagrid that when I double click on a line it display all the information linked to this line in text box.

I would like to do the same thing with the click event. So when the user click on the grid I call the even dbclick. But the thing is that the click event doesn't seem to have selected the right line yet. Because when I only click it display the information about the old line.

For example I'm on the line1
when I click on the line2 it display me the information of the line1.
Supposed that I still on the the line1
I dbclick on the line2, it display me the information of the line2. (as it supposed to)

I call the same procedure for both click and dbclick event.

Does somebody have any idea how I could solve it?
Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top