ExpandAll(
this.radGridViewRepairs.Records, false);
where ExpandAll is defined as :
/// <summary>
/// Expands all records
/// </summary>
public void ExpandAll(IList<Record> records, bool bExpand)
{
foreach (Record rec in records)
{
if (rec is ExpandableDataRecord)
(rec
as ExpandableDataRecord).IsExpanded = bExpand;
else if (rec is GroupRecord)
ExpandAll((rec
as GroupRecord).Records, bExpand);
}
}
This worked fine in a previous trial version, but now I'm using a full release version (Q2 2009) it only collapses the first few records (it looks like just those that were physically on the screen when the grid was expanded). You can click it multiple times, and it collapses a few more each time.
How can I get this working, so it collapses all expanded rows?
Thanks,
Ben
BlueHub