abidsml
asked on
db grid
i have a db grid and i need when i click on a row (record) display one field from the gid in a text box it works only on the press of a second click not the first Why and ho to solve this
Try to locked the columns.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
The easier way to slove this problem is to trap MouseDown event. And using this you should get your text box on first click. This assumes that your first control on the form is Grid control. I hope this will work.
The easier way to slove this problem is to trap MouseDown event. And using this you should get your text box on first click. This assumes that your first control on the form is Grid control. I hope this will work.
The addition to my earlier comment please use RowContaining and ColContaining methods, which will make sure that you get the text box in your desired field.
Use the RowColChange event.
ASKER
well i have used the code above, it behaves silly, when i click first time works, but when i scroll down to get an entry at the bottom of the grid it returns to the top of the grid when i click. !!!