title: ASPxGridView Sorting event not firing
body: <p>I apologize if this may sound like an easy fix. I am very new at using VB.Net and DevExpress' library of gridviews and many other wonderful things so far. I'm trying to get more familiar with DevExpress and VB.Net in general. So far, I've been trying to get ASPxGridView with a sorted event to be triggered but it just never comes across the function I have below. It is getting the datatable on page load but it is not triggering and sorting event function I have on here. Let me know if I am doing something wrong.</p>
  
  <p>Here is my front code using DevExpress' ASPxGridView code.</p>
  
  <pre><code>&lt;dx:ASPxGridView runat="server" ID="gdrDataView" ClientInstanceName="gdrDataView" AutoGenerateColumns="false" Styles-AlternatingRow-BackColor="#DDDDDD" OnCustomColumnSort="gdrDataView_CustomColumnSort"&gt;
     &lt;Settings GridLines="None" /&gt;
     &lt;SettingsPager Position="Top" Mode="ShowPager" PageSize="50"&gt;&lt;/SettingsPager&gt;
     &lt;Styles SelectedRow-ForeColor="Black" SelectedRow-BackColor="#ffdd99"&gt;&lt;/Styles&gt;
     &lt;SettingsBehavior AllowSelectByRowClick="true" AllowSelectSingleRowOnly="false" AllowSort="true" /&gt;
     &lt;SettingsEditing BatchEditSettings-StartEditAction="Click" BatchEditSettings-ShowConfirmOnLosingChanges="true"&gt;&lt;/SettingsEditing&gt;
     &lt;Columns&gt;
         &lt;dx:GridViewDataColumn Caption="ID" FieldName="ID" ReadOnly="true"&gt;
             &lt;CellStyle HorizontalAlign="Center"&gt;&lt;/CellStyle&gt;
         &lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataColumn Caption="EnterBy" FieldName="EnterBy"  ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataColumn Caption="EnterDate" FieldName="EnterDate" ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataColumn Caption="Contact" FieldName="Contact" ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataDateColumn Caption="Start" FieldName="Start" ReadOnly="true"&gt;
             &lt;PropertiesDateEdit DisplayFormatString="g"&gt;&lt;/PropertiesDateEdit&gt;
         &lt;/dx:GridViewDataDateColumn&gt;
         &lt;dx:GridViewDataDateColumn Caption="End" FieldName="End" ReadOnly="true"&gt;
             &lt;PropertiesDateEdit DisplayFormatString="g"&gt;&lt;/PropertiesDateEdit&gt;
         &lt;/dx:GridViewDataDateColumn&gt;
         &lt;dx:GridViewDataColumn Caption="Status" FieldName="Status" ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataColumn Caption="Type" FieldName="Type" ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
         &lt;dx:GridViewDataColumn Caption="Description" FieldName="Description" ReadOnly="true"&gt;&lt;/dx:GridViewDataColumn&gt;
     &lt;/Columns&gt;
  &lt;/dx:ASPxGridView&gt;
  </code></pre>
  
  <p>Here is my backend code in VB.</p>
  
  <pre><code>Protected Sub gdrDataView_CustomColumnSort(ByVal sender As Object, ByVal e As CustomColumnSortEventArgs)
      Dim grid As ASPxGridView = TryCast(sender, ASPxGridView)
      Dim test As New DataService.DataService
      Dim data As DataSet
      data = test.GetChanges(ddlType.SelectedValue, CheckDBNull(CType(dtStart.SelectedDate, DateTime), enumObjectType.DateType), CheckDBNull(CType(dtEnd.SelectedDate, DateTime), enumObjectType.DateType))
      grid.DataSource = data.Tables(0)
      grid.DataBind()
  End Sub
  </code></pre>