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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG + ArrayList of custom objects

Thread ID:





37304 Nov 18,2005 07:07 PM UTC Nov 18,2005 11:51 PM UTC WinForms 2
Tags: GridControl
Martin Cyr
Asked On November 18, 2005 07:07 PM UTC

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 08:17 PM UTC

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 11:51 PM UTC

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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon