Forums

Q93136 : total summary for selected rows

Last post 2/9/2010 4:38 AM by Zsolt Papp. 0 replies.
Support Center Article: Q93136
Sort Posts: Previous Next
  • Zsolt Papp

    Q93136 : total summary for selected rows

    2/9/2010 4:38 AM
    • Not Ranked
    • Joined on 8/17/2009
    • Posts 4

    The attached example works incorrect in my project (in 9.3.2), corrected part below:

     protected void ASPxGridView1_CustomSummaryCalculate(object sender, DevExpress.Data.CustomSummaryEventArgs e) {
            if(e.IsTotalSummary) {
                if(e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Start)
                    e.TotalValue = 0;
                if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Calculate)
                {
                    if ((sender as ASPxGridView).Selection.IsRowSelected(e.RowHandle))
                        e.TotalValue = Convert.ToInt32(e.TotalValue) + Convert.ToInt32(e.FieldValue);
                }
            }
        }

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.