Bind custom class

1 posts, 0 answers
  1. Tomas
    Tomas avatar
    3 posts
    Member since:
    Nov 2013

    Posted 12 Nov 2013 Link to this post

    Hi everybody,

    I am searching for help with binding as I am not strong in that area.

    I have custom class representing a table and I need to bind that as a source of gridview.
    public class DynamicRow : Dictionary<string, object>
        // custom methods
    public class DynamicTable : List<DynamicRow>
        private Dictionary<string, Type> columns = new Dictionary<string, Type>();
        // custom methods

    Is it possible to use the autogeneratecolumns option with such structure? I think I need to implement some interface. I can add anything to the code, but cannot change the whole concept.

    Thanks for help.
Back to Top