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
20
XAm Grid Group Expanding
posted

Currently I have a xamgrid where the rows are grouped by status. I want all the groups collapsed except the group of "pending" How would I go about checking is that group has a value of pending and expanding.

Thanks

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi, 

    When you groupby a column, the rows collection of the xamGrid will be made up of GroupByRows

    And a GroupByRow has a GroupByData property.

    So you can do something like the following:

    GroupByRow gbr = (GroupByRow)this.grid.Rows[0];

                if (gbr.GroupByData.Value == "pending")

                {

                    // do logic

                }

    -SteveZ

Children