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.

GDBG + ArrayList of custom objects

Thread ID:

Created:

Updated:

Platform:

Replies:

37304 Nov 18,2005 02:07 PM Nov 18,2005 06:51 PM Windows Forms 2
loading
Tags: GridControl
Martin Cyr
Asked On November 18, 2005 02:07 PM

Hi, I''m using a GDBG to display a collection (ArrayList) of custom objects. Works nicely up to now, but now I need to be able to add new objects to the collection. I ensured that EnableAddNew is true but in the description, it says "if the undelying datasource supports it". So my only guess is that the grid doesn''t know how to create my object. Am I right? If so how can I fix this?

Martin Cyr
Replied On November 18, 2005 03:17 PM

I just read the Urgent please do help thread (http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=37176) and it looks like what I want. Clay said that the collection should implement IBinding.AddNew but is there a collection that already implement this?

Administrator [Syncfusion]
Replied On November 18, 2005 06:51 PM

You can use a DataTable instead of an ArrayList if all you want is to add new items at the bottom of the list. The grid will then know how to add the new item. If the Datatable is too heavy, then you will likely have to implement IBindingList on your ArrayList.

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.

;