C
Cathryn Johns
Hi
I'm binding a dataset to my datagrid at runtime, and I want to allow
sorting only on certain columns. How do I do this? If I set
AllowSorting to true, all the column headers are underlined and
sortable; if I set it to false, none of them are, even if I set the
SortExpression property for the columns that I want to be sortable.
I'm sure it can be done, and it's probably easier to do it at design
time, but as I say I'm only binding the grid to the datasource at
runtime.
I'm binding a dataset to my datagrid at runtime, and I want to allow
sorting only on certain columns. How do I do this? If I set
AllowSorting to true, all the column headers are underlined and
sortable; if I set it to false, none of them are, even if I set the
SortExpression property for the columns that I want to be sortable.
I'm sure it can be done, and it's probably easier to do it at design
time, but as I say I'm only binding the grid to the datasource at
runtime.