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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid problem when selected a line in it

Status
Not open for further replies.

RSX02

Programmer
May 15, 2003
467
CA
Hi
I have a datagrid in a form that's working fine.
The thing is: Supposed that I have 2 lines.
line1
line2
When I dbclick on a line it execute some code that use the line that is selected by the user. That part works fine.

When I click on a line I call the procedure in the dbclick procedure. The problem is that the click is not fast enought to select the line that it selected in the datagrid.

For example if my cursor is on the Line1 and I double click on the line2 every thing is working fine.

But if I'm still on the Line1 and I click on the line 2 it execute the code but with the line1.

It seems as if the click is not fast as the dbclick to select the line. Does somebody know what I should do to make it works also when the user click on the line.

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top