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
110
Per-Column sorting in UltraWebGrid
posted

I'm using an UltraWebGrid, and in addition to several data columns I want to allow users to sort by, I have four other columns which contain controls or status images that I do not want to allow the user to sort by.  Is there a way to enable/disable sorting on a per-column basis with the ultrawebgrid?

  • 45049
    Verified Answer
    posted

    For the columns that you don't want the users to be able to sort, set that column's Header.ClickAction property to "Select", and for the remaining columns, set the same property to either "SortSingle" or "SortMulti".  All of these values are part of the Infragistics.WebUI.UltraWebGrid.HeaderClickAction enumeration.

    If you disallow column selection, then the user clicking the column headers of a column whose header's ClickAction is set to "Select" will essentially do nothing.