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();