We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

AllowAddNew in GDBG bound to an ArrayList

What do I have to do to convince the Binder that it can add new records when bound to an ArrayList? Is it only ADO.NET datasources that set AllowAddNew to true? Thanks

3 Replies

AD Administrator Syncfusion Team July 29, 2004 09:11 AM

Your ArrayList would have to implement IBindingList (at least the methods associated with adding a new object to the list) in order for the default AddNew architecture to work.


JL Jeff Lancaster August 9, 2004 05:34 PM

Any chance you have an example of this. I have the same need - a GDBG bound to an arraylist in which I need to be able to programatically add and delete rows. >Your ArrayList would have to implement IBindingList (at least the methods associated with adding a new object to the list) in order for the default AddNew architecture to work.


AD Administrator Syncfusion Team August 9, 2004 06:30 PM

The Grid\Samples\DataBound\Hierarchical\Customers sample has a custom collection that implements IBindingList is the sample we ship that implement IBindingList.

Loader.
Live Chat Icon For mobile
Up arrow icon