K
Kubuli John
I use a DataView object as the datasource for an ASP.NET DataGrid. I
am seting the DataView.Sort member with a column name and a direction,
eg:
dvEmp.Sort = "emp_name DESC";
This works fine, but when I post back to the page and look at the
dvEmp.Sort value, it only contains "emp_name", and appears to have
discarded the " DESC" specifier. Despite this, the dataview is
actually sorted correctly in descending order.
What gives?
John H.
am seting the DataView.Sort member with a column name and a direction,
eg:
dvEmp.Sort = "emp_name DESC";
This works fine, but when I post back to the page and look at the
dvEmp.Sort value, it only contains "emp_name", and appears to have
discarded the " DESC" specifier. Despite this, the dataview is
actually sorted correctly in descending order.
What gives?
John H.