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
4695
multiple sort of two columns in ultragrid
posted

What is the simplest way to sort two columns in ultragrid??

e.g. Firstly column 1 ascending and then column 2 ascending???

Is there any sample code ??

  • 469350
    Offline posted


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];
                UltraGridOverride ov = layout.Override;

                ov.HeaderClickAction = HeaderClickAction.SortMulti;
                band.SortedColumns.Add("Int32 1", false);
                band.SortedColumns.Add("Int32 2", false);
            }