Posted 12 Jan 2011 Link to this post
GridGroupByExpression groupExprCol1 =
new
GridGroupByExpression("col_1 Group By
col_1");
grid1.GroupDescriptors.Add(groupExprCol1); GridViewSummaryItem
sumItemValue =
GridViewSummaryItem(
"value"
,
"{0,12:#,0;(#,0)}"
GridAggregateFunction.Sum); GridViewSummaryRowItem sumGroupCol1 =
GridViewSummaryRowItem(); sumGroupCol1.Add(sumItemValue);
grid1.MasterTemplate.SummaryRowsBottom.Add(sumGroupCol1);
// Group By
GroupDescriptor descriptor =
GroupDescriptor();
descriptor.GroupNames.Add(
"Name"
, ListSortDirection.Ascending);
this
.radGridView1.GroupDescriptors.Add(descriptor);
// Summary Row
GridViewSummaryItem summaryItem =
GridViewSummaryItem();
summaryItem.Name =
"Id"
;
summaryItem.FormatString =
"SUM={0}"
summaryItem.Aggregate = GridAggregateFunction.Sum;
GridViewSummaryRowItem summaryRowItem =
GridViewSummaryRowItem();
summaryRowItem.Add(summaryItem);
.radGridView1.SummaryRowsBottom.Add(summaryRowItem);
// Get rid of the group header....
.radGridView1.TableElement.GroupHeaderHeight = 0;
Posted 13 Jan 2011 Link to this post
Posted 11 Apr 2011 Link to this post
.gridView.SummaryRowsBottom.Add(gridViewSummaryRowItem1); Any help you might be able to provide would be greatly appreciated. Thanks!
Posted 12 Apr 2011 Link to this post
.radGridView1.MasterTemplate.ShowTotals =
true
void
radGridView1_GroupSummaryEvaluate(
object
sender, GroupSummaryEvaluationEventArgs e)
{
if
(e.SummaryItem.Name ==
"Col1"
)
e.Group.HeaderRow.Height = 24;
}
Posted 14 Apr 2011 Link to this post
Any help you might be able to provide would be greatly appreciated. Thanks! Roberto
Posted 19 Apr 2011 Link to this post
.radGridView1.MasterTemplate.ShowParentGroupSummaries =
Posted 06 Mar 2017 in reply to Alexander Link to this post
.DgvTrialBalance.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Bottom;
Posted 07 Mar 2017 Link to this post
private
RadGridView1_ViewCellFormatting(
sender, CellFormattingEventArgs e)
(e.CellElement
is
GridSummaryCellElement)
e.CellElement.DrawFill =
e.CellElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
e.CellElement.BackColor = Color.Red;
else
e.CellElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.GradientStyleProperty, Telerik.WinControls.ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, Telerik.WinControls.ValueResetFlags.Local);
Posted 14 Mar 2017 in reply to Dimitar Link to this post
Hello Dimitar,
Where I used that code before but there all the summery rows changing there color ,where i need to change color only the last summery row .
Thanks in advance jamsheer
Posted 14 Mar 2017 Link to this post
sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
var row = e.Row
as
GridViewSummaryRowInfo;
(row.SummaryRowItem.FirstOrDefault().Name ==
"Name1"
Posted 15 Feb 2018 Link to this post
Hi, I have RadGridview with grouped columns. and their summery.
Where I want to hide summery of group and Show only Total summery of grid.
I want to show only the red mark summery row, the black mark row to hide in the below pic .
How could i do .
Posted 16 Feb 2018 Link to this post