Hi Shachar,
Please try this code snippet in IsChildVisible override method and let me know if you are looking something different.
public override bool IsChildVisible(Element el)
{
if( this != null && this.FilteredRecords != null
&& this.FilteredRecords.Count <= 1 )
{
if( el.Kind == DisplayElementKind.Caption )
{
this.IsExpanded = true;
return false;
}
else if( el is GridRecordsDetails)
return true;
else
return false;
}
else
{
return base.IsChildVisible(el);// Otherwise default behavior:
}
}
Here is a modiifed sample.
GGCHideShowGroup_ae89e3bb.zipBest Regards,
Haneef