Cannot bind to list<T>.property or list<T>.item.property in details section of Telerik report

Posted by fluf on Stack Overflow See other posts from Stack Overflow or by fluf
Published on 2010-06-18T07:40:30Z Indexed on 2010/06/18 7:43 UTC
Read the original article Hit count: 204

I have created a Telerik report and I am setting the datasource on runtime to an object with some properties and a List. I am using the properties in the page and report header sections and i want to use the list as the details. Now the problem is binding to the List's item properties in the details section. I have played around with the expression builder and it seems that i should access the properties like this :

[=Fields.myList.Item.myProperty]

when i run the program i get a nice big red rectangle with the following error :

An error has occured while processing TextBox 'textBox28':Common Language Runtime detected an invalid program.

I have tried to change different variants of expression which also gives me other errors

[=Fields.myList.myPropery]

An error has occured while processing TextBox 'textBox28': The expression contains object 'myProperty' that is not defined in the current context.

The closest i have gotton was with the object it self, which outputs the object.toString()

[=Fields.myList]

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about databinding