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.

GGC AddNew not Called error

Thread ID:

Created:

Updated:

Platform:

Replies:

57146 Feb 26,2007 07:00 PM Feb 28,2007 05:10 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 26, 2007 07:00 PM

Hi,
I'm activating the addnewrecord row in GGC, but whenever I try to add a row, I get an exception and messagebox "AddNew not Called"
Can you give me some guidelines on how best to handle this?

Thanks,
Dimitri

Administrator [Syncfusion]
Replied On February 26, 2007 07:20 PM

Hi Dimitri,

If you want to actually add new items to the arraylist(IList) through the GridGroupingControl, then you should also have your arraylist implement IBindingList to support the addnew functionality directly from the grid. Please refer this sample:

C:\Program Files\Syncfusion\Essential Studio\4.4.0.49\windows\Grid.Grouping.Windows\Samples\CustomCollections\StronglyTypedCollection\

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 28, 2007 05:10 PM

Thanks Haneef,
I noticed that other GGC just accept data into the new record line without the code in the sample you mentioned. I'm not sure what the arrayList(IList) and when it's appropriate to use it. Can you enlighten me on this?

Dimitri


>Hi Dimitri,

If you want to actually add new items to the arraylist(IList) through the GridGroupingControl, then you should also have your arraylist implement IBindingList to support the addnew functionality directly from the grid. Please refer this sample:

C:\Program Files\Syncfusion\Essential Studio\4.4.0.49\windows\Grid.Grouping.Windows\Samples\CustomCollections\StronglyTypedCollection\

Best regards,
Haneef

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.

;