The below code works in a Tererik report
Me.txt001.Value = drw("int001")
Me.txt002.Value = drw("int002")
Me.txt003.Value = drw("int003")
where drw is a DataRow
I have around 600 controls on a report and need to be able to loop through the various textboxes.
The following works in a Visual Studio Form but not in a Telerik report
For
intCounter As Integer = 1 To 3
Me.Controls("txt00" & CStr(intCounter)).Text =
drw("int00" & CStr(intCounter)).ToString
Next
It does not like Me.Controls("txt00" & CStr(intCounter)).Text
Any ideas, otherwise I would have to painstakingly refer to all controls by name.
Thanks.