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
190
Group By features
posted

I added one column to group by :

ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add(

"ColumnA_name", false, true);

In the header of groupBy I see: "ColumnA_name": value

1)I want to show in this header also value of another column B (all rows in this group by are with the same value in column B). Can I do It?

2) I want to change the color of the groupBy header, accordin to value in column B, Can I do it?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    anna79 said:
    1)I want to show in this header also value of another column B (all rows in this group by are with the same value in column B). Can I do It?

    You would do this using the InitializeGroupByRow event. The event gives you a reference to the GroupByRow and you can set it's Description, which is the text displayed in the row.

    Some useful properties on the GroupByRow that you will need are:

    Value: The value of the grouped column cell.

    Column: The column being grouped

    Rows: The collection of child rows, so you can read the value of the cells in those rows.

    anna79 said:
    2) I want to change the color of the groupBy header, accordin to value in column B, Can I do it?

    Just set the Appearance on the row in the same event.

Children
No Data