Adding new Record at the end of the defaultview
I want to use the AddNew function to add new records to a DefaultView. However, every new row must sit at the bottom sothat when I loop I only access the old records which would sit at the top. I used dv.AddNew() function but the new records get mixed up. How can I do that, please. Thanks for helping.
Re: Adding new Record at the end of the defaultview
Just make sure the dataview you are adding newRows to is not sorted in the first place.I think that is the cause of your headache. Normally every new Row is added at the bottom of the table as you want.
Re: Adding new Record at the end of the defaultview
This is new. Answering your own questions? Did you give yourself rep?
Re: Adding new Record at the end of the defaultview
If you are going to not sort the DataView to make sure that the row is at the bottom then why use the DataView at all? Why not just use the DataTable?