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

Binding to business object - Update

Hi,

we have a business object which is bound to a GGC. Now I have code which changes a parameter "DataValue" in conjunction of a parameter "Data". But the grid doesn't update "DataValue".

I have attached a sample where you can see what I mean. As I remember syncfusion doesn't support the microsoft INotifyPropertyChanged interface - so how can I handle this.

Thanks in advance



BindingExample5.zip

1 Reply

AD Administrator Syncfusion Team January 23, 2007 08:59 PM UTC

Hi Tom,

You can handle the SourceListRecordChanging event and set e.Cancel = true when e.TableListChangedEventArgs is null. Andalso you need to set the Engine.UseOldListChangedHandler = true. Here is a code snippet.

gridGroupingControl1.Engine.UseOldListChangedHandler = true;
gridGroupingControl1.SourceListRecordChanging += new Syncfusion.Grouping.RecordChangedEventHandler(gridGroupingControl1_SourceListRecordChanging);

void gridGroupingControl1_SourceListRecordChanging(object sender, Syncfusion.Grouping.RecordChangedEventArgs e)
{
if (e.TableListChangedEventArgs == null)
e.Cancel = true;
}

Please refer to the modified sample for implementation.
ModifiedBindingExample.zip

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon