I can't figure out how to sort a field in Ascending order.
this is what i have:
<asp:TemplateField>
<HeaderTemplate>
<b><u>Live Date</u></b>
</HeaderTemplate>
<ItemTemplate>
<%#formatdatetime(Eval("TaskStartDt"), DateFormat.ShortDate)%>
</ItemTemplate>
</asp:TemplateField>I want to sort TaskStartDt in Ascedning onrder when it's displayed on the page.
Any ideas on how I can do that?
Thank you!
this is what i have:
<asp:TemplateField>
<HeaderTemplate>
<b><u>Live Date</u></b>
</HeaderTemplate>
<ItemTemplate>
<%#formatdatetime(Eval("TaskStartDt"), DateFormat.ShortDate)%>
</ItemTemplate>
</asp:TemplateField>I want to sort TaskStartDt in Ascedning onrder when it's displayed on the page.
Any ideas on how I can do that?
Thank you!