Link to home
Start Free TrialLog in
Avatar of reynaldio
reynaldioFlag for Indonesia

asked on

Moving cursor to first column when adding new record in dbgrid

Hi experts,

how do i move the cursor to the first column when user are adding new row in dbgrid?

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Emmanuel PASQUIER
Emmanuel PASQUIER
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of reynaldio

ASKER

Thanks for your reply.

Is there an event in dbgrid that will trigger if new row is added?

Regards,
Reynaldi
You can use the OnNewRecord event of the Table/Query that is used as source for this DBGrid
or onAfterInsert
If i put the code in dataset "afterinsert" then i need to put that in every form and dataset components.
Is it possible to do everything in dbgrid?

Regards,
Reynaldi
I've only checked quickly, but I don't think so.
Thank you for your help