Tutorial :how to keep the rows ordering of datatable unchanged?



Question:

I have the following datatable with the ordering of DataClassIndex column before editting:

DataclassIndex 0 1 2 3 4

When I start modifying some other cells in this datatable, the ordering of DataClassIndex column changes to something like this

DataclassIndex 3 4 2 1 0

How can I modify a datatable content without altering the original order of the datatable.


Solution:1

If you're getting this data from a database somewhere, you'll want to create a "primary key" column and sort by the primary key. The order should then always be the same.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »