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
885
Sorting only specific columns in grid
posted

Hi,

 Using  HeaderClickAction as below I could sort any columns in my grid fine, however requirement is to sort only 4 columns out of 10 in grid. How would I accomplish this?e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti

 

 Thanks!

 

Parents
No Data
Reply
  • 20872
    Offline posted

    Hello,

    One possible way to disable the sorting of some of your columns is setting the following code in your IntializeLayout event:

     void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
            {

                e.Layout.Bands[Index].Columns[Key].SortIndicator = SortIndicator.Disabled;

            }

    Please let me know if you have any other questions.

Children