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
335
Determining the Grouped By Values when the ActiveRow is a GroupBy Row
posted

I have a grid with Category, Class, Product, and then some sales data.  My user may group by Category, and then by Class, and then click one of the Group By rows (either the Top level, Category, or the nested level, Class, within Category).  In the RowActivate event, I can tell that the activerow is a groupby row, but how do I determine the value (Category) or values (Category and Class) in the active groupby row?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    The GroupByRow class has a Value property right on the row. So if you get the ActiveRow of the grid, you can cast it to a GroupByRow and then use the Value property.

    To determine the values of it's parent groups, you would use the ParentRow property on the row to get the parent row, cast it to a GroupByRow (if it's not null) and get it's Value.

     

Children
No Data