dragoon
Posts: 173
|
Posted: 02/07/2006, 8:02 PM |
|
ok I figured out that I need to specify smth. in Code Source of a label when it's type is set to CodeExpression. (never did this before..why I need to set a value to variable ... just initializing isn't it enough?)
now, in page.aspx.cs i get this piece of code:
//Report expenses_erp_currencies BeforeItemDataBound event @5-E42F8C53
protected void expenses_erp_currenciesBeforeItemDataBound(Object Sender, BeforeItemDataBoundEventArgs e)
{
e.DataItem["DetailRowStyle"].SetValue("");
}
//End Report expenses_erp_currencies BeforeItemDataBound event
that label is placed in Detail section of the report (i'm using it to change the style of the rows). The problem is, when I don't have any rows in the report I get an exception:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
the only way to stop this is to comment this line e.DataItem["DetailRowStyle"].SetValue(""); (in this case also I don't need to give a value to the label)
|