Sorted dataview to datatable
do this
private DataTable getsortedtable(DataTable dt)
{
//do the operation for sort
return dataView.ToTable();
}
private DataTable getSortedTable(DataTable dt)
{
dt.DefaultView.Sort = "columnName DESC";
return dt.DefaultView.ToTable();
}