hello I want to Access report fields from a Table item and I've tried the follow example as in the http://www.telerik.com/help/reporting/faq-accessing-items.html
Private Sub tabelaLivroPonto_ItemDataBinding(sender As Object, e As EventArgs) Handles tabelaLivroPonto.ItemDataBinding
'get the textbox from the sender object
Dim textBox As Telerik.Reporting.Processing.TextBox = DirectCast(sender, Telerik.Reporting.Processing.TextBox)
'get the table object
Dim table As Telerik.Reporting.Processing.Table = DirectCast(textBox.Parent, Telerik.Reporting.Processing.Table)
'get the detail section
Dim detail As Telerik.Reporting.Processing.DetailSection = DirectCast(table.Parent, Telerik.Reporting.Processing.DetailSection)
'get the raw value from the Report datasource directly
textBox.Value = detail.DataObject("DiaSemana")
MsgBox(textBox.Value)
End Sub
but I got the follow error in my reportviewer
"An erro has ocurred while processing table "tabelaLivroPonto" <- my table
Unable to cast object of type 'Telerik.Reporting.Processing.Table' to type 'Telerik.Reporting.Processing.TextBox'
Please, someone could help me?
ty