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
195
How do I automatically sort by a column and disallow all manual sorting?
posted

I want my grid to be sorted by one column and one column only. The grid should always be sorted in the same way and not allow any other sorting. How do I go about this?

 Thanks

Parents
  • 927
    posted

    To prevent the user from sorting the grid, try this:

    First, disable all sorting by setting this property

       ultraGrid1.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.Select;

    Optionally, you may also want to make columns unselectable:

       ultraGrid1.DisplayLayout.Override.SelectTypeCol = SelectType.None;

Reply Children