title: Sorting dataset in asp.net c#
body: <p>I'm trying to sort the data,however the names do not get sorted when I jump from one page to another.            </p>
  
  <pre><code>return new dao_StudentGroupStudents().GetNewStudentbyGroup(bureauId, search, groupId, currentPage, pageSize, out totalCount);
  
      /// &lt;summary&gt;
      /// Get All the students from that Bureau.
      /// &lt;/summary&gt;
  
      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;
      }
  </code></pre>
  
  <p>I'm typing this in and now I get Cannot find column columnName.</p>
  
  <p>public DataSet GetAllStudentGroupByBureau(int? GroupId, int? BureauID)
          {
      DataSet ds = new dao_StudentGroup().GetDataSet(null, null, BureauID);</p>
  
  <pre><code>ds.Tables[0].DefaultView.Sort = "columnName ASC";
  
  DataTable dt = ds.Tables[0].DefaultView.ToTable();
  
  return ds;
  </code></pre>
  
  <p>}</p>