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

Access SummaryRow programmatically

1 Answer 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kim Bouchard
Top achievements
Rank 1
Kim Bouchard asked on 02 Nov 2009, 03:02 PM
Hi,

 i want to access a Cell value of SummaryBottomRow during runtime.
How to do that ?

Kind Regards
Kim

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 05 Nov 2009, 01:59 PM
Hi Kim Bouchard,

Thank you for writing. You can access the summary values by subscribing to ViewCellFormatting event. For example:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridSummaryCellElement)
    {
        object[] values = (e.CellElement as GridSummaryCellElement).Values;
        // Find the value that you need in the array above.
    }
}

Please write again if you need further assistance.

All the best,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kim Bouchard
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or