Hey,
I am facing issue soring my grid view on date column in ascending order.
Please help.
Thankx
Private Sub SortGridView(ByVal dt As DataTable, ByVal col As String)
dt.DefaultView.Sort = col & " DESC"
GridView1.DataSource = dt
End Sub
Where col is "date"
and dt is the data table to sort
I am facing issue soring my grid view on date column in ascending order.
Please help.
Thankx
Private Sub SortGridView(ByVal dt As DataTable, ByVal col As String)
dt.DefaultView.Sort = col & " DESC"
GridView1.DataSource = dt
End Sub
Where col is "date"
and dt is the data table to sort