Hi,
Situation:
I have populated the fields using a datasource. One of the fields has null values. So, I have used a ItemDataBound event to populate the values from a list of values in Hashtable when the value is null. It populates alright.
Problem:
The subtotal in the GroupFooter section still gives the sum of the values which were NOT NULL initially.
Code:
Any help is highly appreciated.
Situation:
I have populated the fields using a datasource. One of the fields has null values. So, I have used a ItemDataBound event to populate the values from a list of values in Hashtable when the value is null. It populates alright.
Problem:
The subtotal in the GroupFooter section still gives the sum of the values which were NOT NULL initially.
Code:
private
void
fldAverageAnnualNLoadDataTextBox_ItemDataBound(
object
sender, EventArgs e)
{
Telerik.Reporting.Processing.TextBox tbAnnualLoad = (Telerik.Reporting.Processing.TextBox)sender;
if
(currentScenario ==
"Base-case"
)
{
if
(!baseCaseValues.ContainsKey(currentCatchment))
{
baseCaseValues.Add(currentCatchment, tbAnnualLoad.Value);
}
}
if
(tbAnnualLoad.Value ==
null
&& currentScenario !=
"Base-case"
)
{
tbAnnualLoad.Value =
string
.Format(
"{0:0.0}"
, baseCaseValues[currentCatchment]);
}
}
Any help is highly appreciated.