If I have a GridView like below. How can I in the simplest way sort by ID in (always) DESC order? Do I need to have a SortExpression
? I'm really new to this, so asking to learn.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowSorting="true" OnSorting="gridView_Sorting">
<Columns>
<asp:HyperLinkField DataTextField="ID" DataNavigateUrlFields="ID"
DataNavigateUrlFormatString="CrimeCoordinator.aspx?ID={0}" Text="Lead ID"
HeaderText="Ärendenummer" />
<asp:BoundField DataField="Employee" HeaderText="Handläggare" />
</Columns>
</asp:GridView>