G
Guest
Hi,
I'm struggling to find a way to make a single object databindable, i.e. show
up as a possible data source in the databindings dropdown in design time.
I have been able to create something that's close, by implementing
ITypedList and IListSource, but what I really need is to be able to bind to a
dynamicly generated list of properties, and not to a predefined System.Type.
As I see it, Microsoft have done it when binding to a DataSet... If all
databinding occurs through reflection, and binds to properties, how come I
can bind to columns on data tables? The columns are NOT properties on the
table, but rather an internal collection of DataColumn objects.
How can I implement a custom object that hosts something similar to a
databindable DataColumn collection?
Thanks in advance,
Danny van Kasteel
I'm struggling to find a way to make a single object databindable, i.e. show
up as a possible data source in the databindings dropdown in design time.
I have been able to create something that's close, by implementing
ITypedList and IListSource, but what I really need is to be able to bind to a
dynamicly generated list of properties, and not to a predefined System.Type.
As I see it, Microsoft have done it when binding to a DataSet... If all
databinding occurs through reflection, and binds to properties, how come I
can bind to columns on data tables? The columns are NOT properties on the
table, but rather an internal collection of DataColumn objects.
How can I implement a custom object that hosts something similar to a
databindable DataColumn collection?
Thanks in advance,
Danny van Kasteel