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
Just use the IsExpanded property on the GroupByRow.
-SteveZ
What is the code i need to write to collapse or expand.
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
}