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
1850
Sort GroupBy Rows?
posted

Is there a way to change the sort on GroupBy rows? or once you have GroupBy rows change their sorting?

 thanks

-Ken 

Parents
  • 1850
    Verified Answer
    posted

    I figured it out on my own. My solution is simple and should actually be a feature in the UltraGrid. I currently have a class that inherits from UltraGrid called IBSBaseGrid. So, I do the following override:

    protected override void OnInitializeGroupByRow(InitializeGroupByRowEventArgs e)
    {
       base.OnInitializeGroupByRow(e);
             
       e.Row.Column.SortIndicator = SortIndicator.Descending;
       e.Row.RefreshSortPosition();
    }
    

    It should be easy to add a GroupByRowSortIndicator Property to the UltraGrid. Where do I add that request?

    -Ken

Reply Children