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. Image for the cookie policy date
close icon

Error occurs when row inserted via binding source into GridGrouping control

Hello,

I have a GCC bound to a Forms.BindingSource. When I insert a row via my DataBinding source, I get an exception on the grid grouping control. I call BindingSource.AddNew() a few times, and get the exception.

Here is the exception dialog contents:

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in Syncfusion.Shared.Base.dll

Additional information: Count = 2 FilteredRecordCount = 0 YAmountCount = 2 ElementCount = 0 RecordCount = 0 CustomCount = 0 VisibleCustomCount = 0 out of range Count = 0 FilteredRecordCount = 0 YAmountCount = 0 ElementCount = 0 RecordCount = 0 CustomCount = 0 VisibleCustomCount = 0

Thanks for your help on this,
-Mike

2 Replies

HA haneefm Syncfusion Team May 23, 2007 06:36 PM UTC

Hi Mikeo,

Try calling the EndEdit/CancelEdit method after calling the AddNew method in BindingSource. Please try this suggestion and let me know if this helps.

Sample : GGCBindingSource.zip

Best regards,
Haneef


MO Michael Offner May 23, 2007 11:14 PM UTC

Hi Haneef,

Thank you again for your quick response on this question. Using this suggestion in conjunction with the grid rebinding technique that you sent me yesterday, solved the problem!!

Thank you again for helping out with this!
-Mike

>Hi Mikeo,

Try calling the EndEdit/CancelEdit method after calling the AddNew method in BindingSource. Please try this suggestion and let me know if this helps.

Sample : GGCBindingSource.zip

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon