Dynamic Properties

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    38 posts
    Member since:
    Mar 2008

    Posted 08 Oct 2009 Link to this post

    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.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 13 Oct 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top