Home Forums WinForms controls Xceed Grid for WinForms Iterate rows in GroupManagerRow Reply To: Iterate rows in GroupManagerRow

User (Old forums)
Member
Post count: 23064

I figured out what I was looking to do. Heres’ the code should anyone fall on this thread:

<pre>
if (row is Xceed.Grid.GroupManagerRow)
{
GroupManagerRow manager = (GroupManagerRow)row;
foreach (Row rowe in manager.ParentGroup.GetSortedDataRows(true))
{
if (rowe is CellRow)
{
bool val = (bool)((CellRow)rowe).Cells[0].Value;
((CellRow)rowe).Cells[0].Value = !val;
}
}

}
</pre>

Imported from legacy forums. Posted by Amit (had 3677 views)