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
445
Disabling the sorting funcionality
posted

Hey tehre everybody.

 

I have a (hopefully) simple to answer question:

 

How can I disable the sorting functionality in the UltraWinGrid.

Right now it toggles between Ascending and descending sort, but I want to disable the sorting alltogether.

Is this possible?

If so, how?

 

Thx in advance

  • 469350
    Offline posted

    Hi,

    Something like this:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Override.HeaderClickAction = HeaderClickAction.Select;
                e.Layout.Override.SelectTypeCol = SelectType.None;
            }

    The second line of code here is optional, if you want to turn off column selection, also.