I'm using the Q3 2009 version.
I want to selectively hide the detail row in the report when the data source row contains a blank value.
I have tried using the ItemDataBinding event for the detail item, but I am unable to get access to the row in the data table that is being bound to the detail item.
When I look at the ItemtDataBinding event in the debugger I can see the field I need but its contained the ReportItemBase object.
In the debugger, I can see that the sender is an object {Telerik.Reporting.Processing.DetailSection}.
Which inherits from Telerik.Reporting.Processing.ReportSection {Telerik.Reporting.Processing.DetailSection}.
Which inherits from Telerik.Reporting.Processing.ReportSectionBase {Telerik.Reporting.Processing.DetailSection}
Which inherits from Telerik.Reporting.Processing.ReportItemBase {Telerik.Reporting.Processing.DetailSection}.
The ReportItemBase contains the Telerik.Reporting.Processing.IDataObject {Telerik.Reporting.Processing.Data.DataMember} which contains a RawData member which contains the row being bound to the detail item.
I can see that the RawData is a strongly typed row of the data table in my data set.
I thought once I get access to the data row I could check the field for a blank value and hide the detail item by setting the Visible property to false if the field contains a blank.
So, how do I get access to the RawData member of the ReportItemBase object in the ItemDataBinding event?
Thanks for any help on this.
Mark
I want to selectively hide the detail row in the report when the data source row contains a blank value.
I have tried using the ItemDataBinding event for the detail item, but I am unable to get access to the row in the data table that is being bound to the detail item.
When I look at the ItemtDataBinding event in the debugger I can see the field I need but its contained the ReportItemBase object.
In the debugger, I can see that the sender is an object {Telerik.Reporting.Processing.DetailSection}.
Which inherits from Telerik.Reporting.Processing.ReportSection {Telerik.Reporting.Processing.DetailSection}.
Which inherits from Telerik.Reporting.Processing.ReportSectionBase {Telerik.Reporting.Processing.DetailSection}
Which inherits from Telerik.Reporting.Processing.ReportItemBase {Telerik.Reporting.Processing.DetailSection}.
The ReportItemBase contains the Telerik.Reporting.Processing.IDataObject {Telerik.Reporting.Processing.Data.DataMember} which contains a RawData member which contains the row being bound to the detail item.
I can see that the RawData is a strongly typed row of the data table in my data set.
I thought once I get access to the data row I could check the field for a blank value and hide the detail item by setting the Visible property to false if the field contains a blank.
So, how do I get access to the RawData member of the ReportItemBase object in the ItemDataBinding event?
Thanks for any help on this.
Mark