Last post Jul 30, 2018 05:22 AM by Nan Yu
Jul 27, 2018 03:43 PM|DDNaidu|LINK
I'm binding one data table into grid view, actually that data table storing in view state,and that data table don't have ID property, I want to show newly added record first in grid view, i did several ways but i didnt get o/p.
Please let me know.
Jul 30, 2018 05:22 AM|Nan Yu|LINK
Hi DDNaidu ,
As a workaround , if possible you can add a column as row number to your datatable and simply sorting by that column as code sample below :
Or if you are querying a database, add the row number to your query :