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
multi sort on ultragrid does not work
posted

Dear all,

I have below code but find that the sorting does not work. Do you know why??

private void dtgPromotionReportList_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("EMPLOYEE_NAME", false);
            band.SortedColumns.Add("PLU", false);
        }

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I tried this out and it worked fine for me.

    Can you be a little more specific about what "does not work?"

    Is your grid data sorted by only one column? Or no columns?

    Do the column headers display the sort icons correctly?

    If you put a button on the form and examine the SortedColumns collection, does it contain both columns?

     

Children