When I add a column to the sorted columns collection, that column is visible again.
How can I sort on a hidden column?
Mike, thanks, no you're right. It was something else. I had named the column of the grid differently from the column in the dataset, and so it was showing up as a new column. I didn't notice it was a duplicate column because the column in the grid that I thought was it, was hidden.
Thanks for thhe quick response!
Hi,
Sorting a column does not have any effect on the Hidden property of that column. So if your column is showing up, something else in the code must be changing the hidden property.
Are you loading a Layout into the grid?