title: GridView, SortedAscendingCellStyle server side databinding
body: <p>I try to use SortedAscendingCellStyle to assign the style of my gridView this is my ASP Code: </p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowSorting="True" CellPadding="4" OnSorting="GridView1_Sorting" AutoGenerateColumns="false"&gt;
              &lt;SortedAscendingCellStyle CssClass="SortedAscendingCellStyle" /&gt;
              &lt;SortedAscendingHeaderStyle CssClass="SortedAscendingHeaderStyle" /&gt;
              &lt;SortedDescendingCellStyle CssClass="SortedDescendingCellStyle" /&gt;
              &lt;SortedDescendingHeaderStyle CssClass="SortedDescendingHeaderStyle " /&gt;
              &lt;Columns&gt;
                  &lt;asp:BoundField DataField="Nom" HeaderText="Nom" SortExpression="NOM"&gt;
                      &lt;ItemStyle Width="150px" /&gt;
                  &lt;/asp:BoundField&gt;
                  &lt;asp:BoundField DataField="Prenom" HeaderText="Prenom"&gt;
                      &lt;ItemStyle Width="150px" /&gt;
                  &lt;/asp:BoundField&gt;
                  &lt;asp:BoundField DataField="Pseudo" HeaderText="Pseudo"&gt;&lt;/asp:BoundField&gt;
  
                  &lt;asp:BoundField DataField="Mail" HeaderText="Mail"&gt;
                      &lt;ItemStyle Width="140px" /&gt;
                  &lt;/asp:BoundField&gt;
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>there is no problem when i use DataSourceID, but when I use server side databining the SortedAscendingCellStyle Did Not work, this my code behind:</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
          {
              if (!IsPostBack)
              {
                  EmployeDAL oem = new EmployeDAL();
                  this.GridView1.DataSource = oem.GetAll();
                  GridView1.DataBind();
  
              }
          }
  </code></pre>