2
Reply

How to perform sorting on a table in ADO.NET?

Akhil Joshi

Akhil Joshi

12y
1.5k
0
Reply

    We can use sorting by using DataView ie. DataView dv =Dtobj; Gridview.datasource=Dv.sort;

    DataView dv = dtEmployee.DefaultView;dv.Sort = "Salary desc";DataTable sortedDT = dv.ToTable();