This is a migrated thread and some comments may be shown as answers.

Unbound Data

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 14 May 2010, 01:58 PM
In your on-line Silverlight demos for the GridView, you show how to populate the grid with "UnboundMode".

I've tried to reproduce the demo in my own sample project and I'm having problems.  When I call RadGridView1.Items.Add(myObject), I'm getting the following exception:
"Attempt by method 'Telerik.Windows.Data.enumerableExtensions.CastTofirstElementType (System.Collections.IEnumerable)' to access method 'System.Linq.Enumerable.Cast<RadGridUnboundTest.MainPage+MyObject>(System.Collections.IEnumerable)' failed."

Can someone give me a working example of how to work with the GridView and unbound data?

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 14 May 2010, 02:48 PM
Hello,

 Please find attached an example, as requested. I hope this helps. Please contact us with any further inquiries.

Sincerely yours,
Yavor Georgiev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lee
Top achievements
Rank 1
answered on 14 May 2010, 03:03 PM
Thanks.

It looks like the problem I was having was related to the fact that my class was defined as "private" instead of "public".  I changed it to a public class and that fixed my problem.

Thanks again.
Tags
GridView
Asked by
Lee
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Lee
Top achievements
Rank 1
Share this question
or