I have a table which is bound to a dataset using the NeedDataSource event. Within the table layout I have a SubReport which requires a value to be passed to it (SignItemId) which is taken from the data.
I have worked through all the binding events for the table and for the SubReport but try as I might I am unable to find a way to pass this value to the SubReport.
This is what I am trying at the moment in the SubReport ItemDataBinding event. It dosent matter where I place the code the DataObject is always returned as nothing.
I have worked through all the binding events for the table and for the SubReport but try as I might I am unable to find a way to pass this value to the SubReport.
This is what I am trying at the moment in the SubReport ItemDataBinding event. It dosent matter where I place the code the DataObject is always returned as nothing.
Dim
subReport
As
Telerik.Reporting.Processing.SubReport = TryCast(sender, Telerik.Reporting.Processing.SubReport)
Dim
processingTable
As
Telerik.Reporting.Processing.Table = TryCast(subReport.Parent, Telerik.Reporting.Processing.Table)
Dim
dataRow
As
System.Data.DataRowView = TryCast(processingTable.DataObject, System.Data.DataRowView)
If
dataRow IsNot
Nothing
Then
MastDetails1.SignId =
CInt
((dataRow(
"SignItemId"
)))
End
If