I have an ASP datagrid which was some columns that contain numbers. However, when I sort, it's sorting them alphabetically. For example:
0
1
10
2
23
30
How can I get it to sort them as numbers?
The column is defined like this:
Thanks in advance...
0
1
10
2
23
30
How can I get it to sort them as numbers?
The column is defined like this:
Code:
<asp:BoundColumn DataField="RenewalCountdown" SortExpression="RenewalCountdown" HeaderText="Renewal Countdown">
<HeaderStyle Font-Bold="True" HorizontalAlign="Left" Width="10%" CssClass="table_header_background"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Top"></ItemStyle>
</asp:BoundColumn>