Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Sort in code only
posted

How can you sort on one or more columns in code without displaying the column header sort indicators?

In the band override, I am currently doing the following:

        HeaderClickAction = HeaderClickAction.Select

       .SelectTypeCol = SelectType.None

I am also setting the SortIndicator for each column to SortIndicator.None

This hides the column header sort indicators, and prevents sorting by clicking on a column header.  But as soon as I add columns programmatically to the the band SortedColumns collection, the column header sort indicator for those columns gets displayed.  The sort indicators are disabled, but I would prefer that they didn't appear at all.

I also need to sort on a hidden column.  Adding a hidden column to the SortedColumns collection doesn't appear to have any effect on the sort order.


Parents Reply Children