views:

139

answers:

1

Basically, I am confused about how to implement databinding on the control side. I am trying to write a custom list control in C#, which implements databinding. I want it to end up having similar functionality to the ListView, but with an interface similar to ListBox. I have a private nested class called "ListRow" which handles rendering of each row. There is an internal binding source which gets changes from the data and causes the control to invalidate if necessary. The problem now is that I want to add a checkbox to the ListRow, and I am not sure the best way to implement it so that the underlying object's property gets changed. Thanks in advance

A: 

try to follow this example. http://www.codeproject.com/KB/database/DataBindCustomControls.aspx

Ran
Thanks that article was very helpful. I have been looking for an explanation like that for a while
Tim