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.
Up arrow icon