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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binding to business object - Update

Thread ID:

Created:

Updated:

Platform:

Replies:

55042 Jan 23,2007 10:28 AM UTC Jan 23,2007 08:59 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 23, 2007 10:28 AM UTC

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

Administrator [Syncfusion]
Replied On 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

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.

Warning Icon 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.Close Icon

;