views:

803

answers:

1

Hi All,

I want to add complex databinding to my custom winforms control. So I can do the following:

myControl.DisplayMember = "Name";
myControl.ValueMember = "Name";
myControl.DataSource = new List<someObject>();

does anyone know what interfaces etc have to be implemented to achieve this?

I've had a look into it and all I can find is IBindableComponent, but that seems to be for Simple Binding rather than Complex Binding.

+1  A: 

Try this or this

KiwiBastard