Hi
I have following code for the RowFormatting event of a Gridview..
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
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);--TargetInvocationException was unhandled
Exception has been thrown by the target of an invocation.
Please Let me know, How to Solve this issue...
Thanks