Let’s say we have a DataTable with rows say:
ROW1
ROW2
ROW3
ROW4
ROW5
ROW3 has been deleted. I would like to clarify if the rows strictly follow the order of:
ROW1
ROW2
ROW4
ROW5
… or the order of ROW4 and ROW5 may change?
Thanks
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.
The rows will strictly follow the order as you have given.
On an aside: If you call DataTable’s
RejectChanges()method after two or more rows are deleted, they may not be reversed in the expected order. There was a bug reported for this but I don’t know if it was corrected.http://connect.microsoft.com/VisualStudio/feedback/details/95389/datatable-rejectchanges-should-rollback-rows-in-reverse-order