title: GridView becomes NULL after sorting?
body: <p>I run this event-handler and method to sort my GridView, but it says that GridView is null:</p>
  <pre><code>protected void OtherGridView_Sorting(object sender, GridViewSortEventArgs e)
      {
          DataTable dtSortTable = gvMeldingen.DataSource as DataTable;
          
              DataView dvSortedView = new DataView(dtSortTable);
              dvSortedView.Sort = e.SortExpression + &quot; &quot; + getSortDirectionString(e.SortDirection);
              gvMeldingen.DataSource = dvSortedView;
              gvMeldingen.DataBind();
          
      }
      private string getSortDirectionString(SortDirection sortDirection)
      {
          string newSortDirection = String.Empty;
          if (sortDirection == SortDirection.Ascending)
          {
              newSortDirection = &quot;ASC&quot;;
          }
          else
          {
              newSortDirection = &quot;DESC&quot;;
          }
          return newSortDirection;
      }
  </code></pre>
  <p>The error I get: DataTable must be set prior to using DataView.</p>
  <p>And this highlighted: <code>dvSortedView.Sort = e.SortExpression + &quot; &quot; + getSortDirectionString(e.SortDirection)</code></p>