Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BindingSource CancelEdit with Autonumber column

17 views
Skip to first unread message

dl

unread,
Dec 6, 2009, 3:17:01 AM12/6/09
to
Hi all
I have a winform with a databound autonumber column as the PK, now when the
user click the "addnew" button on the BindingNavigator follow by a click on
the movefirst button, I can "canceledit" the addnew attempt, however this
seems to leave the autonumber incremented by one on the subsequent "addnew"
click, is there anyway to somehow reset / restore this autonumber? for
example

-click the addnew button
-autonumber column return a number say 1001
-click the movefirst button
-call bindingsource.canceledit
-click the addnew button again
-autonumber column return a number 1002 instead of 1001

Any advice is appreciated!

TIA

0 new messages