Hi Vinod,
My apologies for addressing to the wrong person, it was meant for you.
You can use ShowSummaries property to hide/show the summary row in a grid. Here is a code snippet
//To hide the main table summary row.
this.gridGroupingControl1.TopLevelGroupOptions.ShowSummaries = false;
//To hide all nested table summary row.
this.gridGroupingControl1.NestedTableGroupOptions.ShowSummaries = false;
//To hide all groups summary row.
this.gridGroupingControl1.ChildGroupOptions.ShowSummaries = false;
//To hide a particular grouped column summary row.
this.gridGroupingControl1.TableDescriptor.Columns[ GroupByField ].GroupByOptions.ShowSummaries = false;
If you want to hide a summary row based on some condition, You would have to derive a class from GridGroup. In your derived classes you need to override IsChildVisible.
public override bool IsChildVisible(Element el)
{
if (el is GridSummarySection && this.Records.Count > 2 )
{
return false;
}
else
return base.IsChildVisible(el);// Otherwise default behavior:
}
Here is a minimal sample that shows you " how to hide the summary row based on number of records of group in a grid?".
GGCHideShowSummaryCellText.zipBest Regards,
Haneef