all groups > dotnet windows forms databinding > january 2005 >
You're in the

dotnet windows forms databinding

group:

Databinding Custom NameObjectBaseCollection



Databinding Custom NameObjectBaseCollection BBuff
1/18/2005 1:59:54 PM
dotnet windows forms databinding: I have a custom strongly-type collection that is inherited from
NameObjectBaseCollection and implements ISerializable, IEnumerable,
IListSource and IList. I can databind this object to a data grid just fine,
however, when I make when I add or remove an object or Clear() all of the
objects in the collection, the grid does not reflect this change. Am I
missing something obvious here?

Thanks in advance,
Brian

Re: Databinding Custom NameObjectBaseCollection Simon Tseng
2/18/2005 11:20:09 AM
I think i am on the other end of the same problem, i am writing
customised control to consume the datasource using complex binding.
problem now is when the datasource gets updated i don't know which event
to catch in order to update my custom control.

I know that you need to generate some event to signal changes, but i
could find which one. Hope somebody will provide some solution on this
thread

[quoted text, click to view]
Re: Databinding Custom NameObjectBaseCollection Simon Tseng
2/23/2005 12:54:43 PM
I guess you need to implement IBindingList as well

[quoted text, click to view]
AddThis Social Bookmark Button