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.
Unfortunately, activation email could not send to your email. Please try again.

AllowAddNew in GDBG bound to an ArrayList

Thread ID:

Created:

Updated:

Platform:

Replies:

17041 Jul 29,2004 08:51 AM Aug 9,2004 06:30 PM Windows Forms 3
loading
Tags: GridControl
Mick Speake
Asked On July 29, 2004 08:51 AM

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

Administrator [Syncfusion]
Replied On 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.

Jeff Lancaster
Replied On 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.

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;