Hello,
I have a RadGridView and I'm filtering by making rows not Visible based on checkboxes from another control. This works fine until you drag column header to group. RadGridView shows row headers when there is actually nothing to see when you expand because rows are hidden. I'm trying to use the GroupSummaryEvaluate event to hide the GroupRow if there are no visible rows
int visibleRowCount = 0;
foreach (GridViewRowInfo row in e.Group)
{
if (row.IsVisible)
visibleRowCount++;
}
if (visibleRowCount == 0)
e.Group.GroupRow.IsVisible = false;
else
e.Group.GroupRow.IsVisible = true;
This is sort of working, but i still see GroupRows until i click the down arrow on one of them and then they all vanish, except the ones that actually have visible rows. Am I doing this wrong? Is there a better way?
A secondary problem occurs when you click a filter to add rows back (make then IsVisible = true) in that the group header doesn't come back for visible rows, until the control is ungrouped, then regrouped. Hope this makes sense. Thanks.