I have a datatable with an AutoIncrement column. How can I get the next increment (-1,-2,-3,…) for the column without adding a new row?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it fits in to your design, you can always create the new row (datatable.newrow) and it will already have assigned the nextId. It’s now wasted but the row isn’t committed to the table until you
AcceptChanges.