AutoInc value showing in grid

AutoInc value showing in grid

Post by Koen » Thu, 24 Apr 2008 20:27:51


Hi,
I have a table with an AutoInc keyfield.
When I add a record to the table my grid does not show the value of the
keyfield till I use 'refresh'.
Should I add a call to refresh in my OnAfterPost event? Or is there a better
way to make the grid update its contents? (I am using a devexpress cxGrid)
Regards,
Koen
 
 
 

AutoInc value showing in grid

Post by Vitali Kal » Thu, 24 Apr 2008 21:17:16

Yours second topic in fact is the answer ;-) to this issue in long running
perspective. However AFAIK this problem depends on version of MDB format
that you are using, i.e. you have strong chances that it will gone if you
upgrade to higher MDB format.