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

Bind custom class

0 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tomas
Top achievements
Rank 1
Tomas asked on 12 Nov 2013, 08:26 AM
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.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Tomas
Top achievements
Rank 1
Share this question
or