I have dbadvgrid with clientdataset with 3 index fields so that records will sort by index1, 2, 3 for display reasons. However, when i go to insert a new record, after entering data for first field, when focus moves to 2nd field, the grid calls a post and row is moved to the top of grid because index 2 and 3 are still blank. Causes much confusion. Can this be turned off? I would rather post and resort in onscroll event.
Did you try to set grid.EditPostMode = epRow?
Yes, that property is set to epRow. But the clientdataset post event is firing after every cell edit.
I cannot reproduce this.
I enabled in the ADOEditing demo EditPostMode = epRow and added an event handler in the ADOTable.BeforePost and I do not see this event triggered as long as not changing the active row.
What are you doing different from this?
I opened up ADO editing demo to look. You are right. I will keep looking and compare to my application to find the difference. Thanks.
I have not seen anything in the grid that is causing this. I am not calling a post anywhere on the form or clientdataset.
Can you provide some sample source project with which we can reproduce the problem here?
We downloaded it now. We got errors though when running this project about drivers missing, so we'll need to investigate how to workaround this so we can run it and see the problem.
\win32\debug folder has
https://eyehit.com/damon/tms/tmsgrid_v2_leastcode.zip
I have gone through sample project i sent you with problem and added plain dbadvgrid next to my grid and compare every property one by one. The problem is the navigation.appendonarrow down property. For whatever reason or combination of property settings i have in my grid, having append on arrow down set to true causes post on EVERY cell move even though post mode is set to eprow.