0
Reply

Data column autoincrement issue

Srinivas kadiyala

Srinivas kadiyala

Dec 3 2008 2:23 AM
4.4k
I have a datacolumn which as autoincrement property set. When I add a new row in the datagrid the value is incremented by 1 for the new row say 2.  But if I cancel adding by pressing ESC that new row is removed.  When I add again, the autoincrement takes the next value not the one that is cancelled (3 not 2).  How can I get the actual value 2?