Rad Gridview ? In asp.net?
<p>in web application, i am using radgridview control, in that i am trying for custom sorting, but i am not getting sorting  please help me thank you. This my code :</p>

<pre><code>    &lt;telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  
    PageSize ="3" AllowPaging ="True"  
    Skin="WebBlue" onpageindexchanged="RadGrid1_PageIndexChanged" 
    AllowSorting="True" CellSpacing="0" GridLines="None" 
    onsortcommand="RadGrid1_SortCommand" &gt;
    &lt;MasterTableView AllowCustomSorting ="true"  &gt;
       &lt;Columns &gt;
         &lt;telerik:GridTemplateColumn HeaderText ="Emp No"&gt;
            &lt;ItemTemplate &gt;
                 &lt;asp:Label ID="lablemp" runat ="server" Text ='&lt;%# Eval("empno") %&gt;'&gt;&lt;/asp:Label&gt;
            &lt;/ItemTemplate&gt;
         &lt;/telerik:GridTemplateColumn&gt;
          &lt;telerik:GridTemplateColumn HeaderText ="Firstname" SortExpression ="true"&gt;               
            &lt;ItemTemplate &gt;
                 &lt;asp:Label ID="lablfname" runat ="server" Text ='&lt;%# Eval("firstname") %&gt;'&gt;&lt;/asp:Label&gt;
            &lt;/ItemTemplate&gt;
         &lt;/telerik:GridTemplateColumn&gt;
         &lt;telerik:GridTemplateColumn HeaderText ="Lastname"&gt;
            &lt;ItemTemplate &gt;
                 &lt;asp:Label ID="lablast" runat ="server" Text ='&lt;%# Eval("lastname") %&gt;'&gt;&lt;/asp:Label&gt;
            &lt;/ItemTemplate&gt;
         &lt;/telerik:GridTemplateColumn&gt;
             &lt;telerik:GridTemplateColumn HeaderText ="Sal"&gt;
            &lt;ItemTemplate &gt;
                 &lt;asp:Label ID="labsal" runat ="server" Text ='&lt;%# Eval("sal") %&gt;'&gt;&lt;/asp:Label&gt;
            &lt;/ItemTemplate&gt;
         &lt;/telerik:GridTemplateColumn&gt;
       &lt;/Columns&gt;
    &lt;/MasterTableView&gt;
&lt;/telerik:RadGrid&gt;
</code></pre>

<p>and this .aspx.cs code:</p>

<pre><code>      protected void RadGrid1_SortCommand(object sender, GridSortCommandEventArgs e)
    {
        GridSortExpression expression = new GridSortExpression();
        expression.FieldName = "firstname";
        expression.SortOrder = GridSortOrder.Descending;
        this.RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
        this.RadGrid1.MasterTableView.Rebind();

    }
</code></pre>

<p>can you help me.</p>
