protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem dataItem = (GridDataItem)e.Item;
rev1Sum += CorrectlyParseString((dataItem[
"Rev1"
].FindControl(
"Rev1Label"
)
as
Label).Text.ToString());
}
else
if
(e.Item
is
GridFooterItem)
{
GridFooterItem footer = (GridFooterItem)e.Item;
(footer[
"Rev1"
].FindControl(
"Rev1Total"
)
as
RadNumericTextBox).Value = Double.Parse(rev1Sum.ToString());
}
}
Rev1 is GridTemplateColumn