P
Patrick Jox
Hi,
I have am using ObjectDataSource and GridView to display data on my ASP.NET
webform. I also implemented a comparer class to be able to sort the data by
clicking on the column header.
My problem is that the first time the page is loaded the sort paramter is
passed a zero lenght string. So the gridview is not sorted.
I'm sure this is a very small thing but I can't find it:
How can I define the column that is used for sorting the first time the page
is loaded (!PostBack)?
Thanks
Patrick
I have am using ObjectDataSource and GridView to display data on my ASP.NET
webform. I also implemented a comparer class to be able to sort the data by
clicking on the column header.
My problem is that the first time the page is loaded the sort paramter is
passed a zero lenght string. So the gridview is not sorted.
I'm sure this is a very small thing but I can't find it:
How can I define the column that is used for sorting the first time the page
is loaded (!PostBack)?
Thanks
Patrick