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
250
Changing the default description of a GroupBy row
posted
Hallo, I'd like to change the default description of a GroupBy row from Column Name: Row item (x items) I can iterate through all the rows in Grid.Rows.All, and test if the UltraGridRow is a GroupByRow. However, how can I find where the Description property of the row was constructed, so that my custom description can simply be: Row item I could do some string manipulation, however, this isn't very elegant. This question could be rephrased as, how do I know what the originating column of a group by row is? Regards, Indika
Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Looping through the grid is not a very efficient way to do this.

    The best thing to do is to use the GroupByRowDescriptionMask property.

    If that is not flexible enough for what you need, then you should use the InitializeGroupByRow event of the grid and set the Description there, instead of looping. You can determine the grouped column using the Column property of the GroupByRow. Some other userful properties on the GroupByRow are Value, Description, and DescriptionWithSummaries. 

     

Children