Declined
Last Updated: 12 Sep 2015 08:55 by ADMIN
ADMIN
Jack
Created on: 15 Apr 2013 09:33
Category: GridView
Type: Bug Report
2
FIX. RadGridView - setting the IsVisible property of a summary row in ViewCellFormatting breaks the scrolling in RadGridView.
1. Create a new project with RadGridView.
2. Bind it and set grouping.
3. Add a summary row and set ShowParentGroupSummaries property to true.
4. Handle the ViewCellFormatting event and set all summary rows to be IsVisible = false when the processed cell is GridSummaryCellElement:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridSummaryCellElement)
    {
        e.Row.IsVisible = false;
    }
}

CORRECT WAY TO HANDLE THIS CASE:
Hide the summary rows in the groups you want after grouping/data binding.
To hide the first bottom summary row of the first group in a RadGridView use the following code:
this.radGridView1.Groups[0].GroupRow.BottomSummaryRows[0].IsVisible = false;
2 comments
ADMIN
Stefan
Posted on: 12 Sep 2015 08:55
CORRECT WAY TO HANDLE THIS CASE:
Hide the summary rows in the groups you want after grouping/data binding.
To hide the first bottom summary row of the first group in a RadGridView use the following code:
this.radGridView1.Groups[0].GroupRow.BottomSummaryRows[0].IsVisible = false;
ADMIN
Ivan Petrov
Posted on: 12 Sep 2015 08:44
Hiding rows in the ViewCellFormatting is not advisable. 
Here is what happens:
1. You scroll the grid and get to the point where a summary row will be shown.
2. RadGridView creates a row element for this row and cell elements as children to the row element.
3. At this point, the ViewCellFormatting is triggered so the newly created cells can be styled.
4. Hiding the row at this point causes the grid's traverser to go in an invalid state.