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
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