I'm trying to sort the data,however the names do not get sorted when I jump from one page to another.
return new dao_StudentGroupStudents().GetNewStudentbyGroup(bureauId, search, groupId, currentPage, pageSize, out totalCount);
/// <summary>
/// Get All the students from that Bureau.
/// </summary>
public DataSet GetAllStudentGroupByBureau(int? GroupId, int? BureauID)
{
DataSet ds = new dao_StudentGroup().GetDataSet(null, null, BureauID);
ds.Tables[0].DefaultView.Sort = "grouptitle asc";
return ds;
}
I'm typing this in and now I get Cannot find column columnName.
public DataSet GetAllStudentGroupByBureau(int? GroupId, int? BureauID) { DataSet ds = new dao_StudentGroup().GetDataSet(null, null, BureauID);
ds.Tables[0].DefaultView.Sort = "columnName ASC";
DataTable dt = ds.Tables[0].DefaultView.ToTable();
return ds;
}