GGC AddNew not Called error

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

2 Replies

AD Administrator Syncfusion Team February 27, 2007 12:20 AM UTC

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


AD Administrator Syncfusion Team February 28, 2007 10:10 PM UTC

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

Loader.
Up arrow icon