Sorting columns when displaying single column in datalist
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Currently, I am using the DataList to display the data. My DataList code looks something like this: Name: <% DataBinder.....%> Company: <% DataBinder.....%> My question is: How can I have an easy way of sorting this data. I would like the users to be able to sort the data by Name or by Company. I understand I can add AllowSorting to DataList or DataGrid, but then I would have to display the column names and display the data in 2 columns, which I dont want to do. So is there any other way to allow the users to sort this data, without having to write much code? I am using ASP.NET 2. Thanks