This is a migrated thread and some comments may be shown as answers.

SummaryRowsBottom

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Somnath
Top achievements
Rank 1
Somnath asked on 12 Apr 2011, 03:29 PM
Hi

I have following code for the RowFormatting event of a Gridview..

string sam = PostcountSummary();
            GridViewSummaryItem Total = new GridViewSummaryItem("FullName", " Journal Entry Count: {0} ", GridAggregateFunction.Count);
            GridViewSummaryItem sumDebCre = new GridViewSummaryItem("DebitAmount", " $ {0}", GridAggregateFunction.Sum);           
            GridViewSummaryItem sumPost = new GridViewSummaryItem("PostedImage", "{0}", sam);
  
            GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem(new GridViewSummaryItem[] { Total, sumDebCre, sumPost });
  
            if (this.SummaryDataGridView.SummaryRowsBottom.Count > 0)
            {
                this.SummaryDataGridView.SummaryRowsBottom.Clear();
            }
            this.SummaryDataGridView.SummaryRowsBottom.Add(summaryRowItem);
But After Execution(run) the Project  I get Error like---
--TargetInvocationException was unhandled
   Exception has been thrown by the target of an invocation.

Please Let me know, How to Solve this issue...
Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 15 Apr 2011, 09:15 AM
Hello Somnath,

I confirm that adding summary row using the RowFormatting event of RadGridView leads to crashes of the control. Please could you give us some details concerning the scenario you are trying to achieve? It will help us to find suitable approach for your case.

I am looking forward to your reply.

Best regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Somnath
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or