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

Dynamic Properties

1 Answer 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 08 Oct 2009, 09:26 PM
I want to bind a generic list to a grid view but the columns can't all be defined as properties because they will be dynamic. Is this possible. It seems it should be since we can bind to a DataTable and other generic items which use this[string property] type accessorts.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 13 Oct 2009, 11:43 AM
Hi Stephen,

Your T items in your generic list must implement ICustomTypeDescriptor interface like DataRowView object used in DataTable and DataView data objects.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Stephen
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Share this question
or