Thie example does not seem to work. I want to catch the report and find an integer value and replace it with a string. Do you know how to do that?
I do not see many examples.
private void detail_ItemDataBound(object sender, System.EventArgs e)
{
Processing.DetailSection section = sender as Processing.DetailSection;
Processing.ReportItemBase extraShipping = section.Items.Find("extraShippingCostTextBox", false)[0];
DataRowView row = section.DataItem as DataRowView;
if (null != row)
{
object val = row.Row["Weight"];
if (!(val is DBNull) && ((decimal)val) > 10)
{
extraShipping.Visible = true;
}
else
{
extraShipping.Visible = false;
}
}
}
I do not see many examples.
private void detail_ItemDataBound(object sender, System.EventArgs e)
{
Processing.DetailSection section = sender as Processing.DetailSection;
Processing.ReportItemBase extraShipping = section.Items.Find("extraShippingCostTextBox", false)[0];
DataRowView row = section.DataItem as DataRowView;
if (null != row)
{
object val = row.Row["Weight"];
if (!(val is DBNull) && ((decimal)val) > 10)
{
extraShipping.Visible = true;
}
else
{
extraShipping.Visible = false;
}
}
}