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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to update binding source of a GridTextColumn as soon as a change is made?

Thread ID:

Created:

Updated:

Platform:

Replies:

129684 Mar 28,2017 01:08 PM Mar 31,2017 12:16 AM WPF 3
loading
Tags: SfDataGrid
Silvio
Asked On March 28, 2017 01:08 PM

Hi,

I'm using GridTextColumn in an sfDataGrid and I'd like the underlying binded property (set by MappingName property) is set as soon as the user changes the column cell value.
By default, instead, the binded property is changed only when the focus leaves the cell and moves to another cell.
Is there the possibility to configure this behaviour on the cell as I'd do with normal binding using "UpdateSourceTrigger=PropertyChanged" ?

Thank you,

Silvio

Balamurugan Rajaraman [Syncfusion]
Replied On March 29, 2017 01:51 PM

Hi Silvio, 
 
Thank you for contact Syncfusion support. 
 
We have analyzed your query “Is it possible to update binding source of a GridTextColumn as soon”. You can able to achieve your requirement by setting the UpdateTriggere property as PropertyChanged for the GridTextColumn as like the below provided code sample.  
 
 
<syncfusion:SfDataGrid ItemsSource="{Binding Orders,UpdateSourceTrigger=PropertyChanged}" AllowEditing="True" AutoGenerateColumns="False"> 
            <syncfusion:SfDataGrid.Columns> 
                <syncfusion:GridTextColumn UpdateTrigger="PropertyChanged" MappingName="OrderID"/> 
                <syncfusion:GridTextColumn UpdateTrigger="PropertyChanged" MappingName="CustomerID"/> 
                <syncfusion:GridTextColumn UpdateTrigger="PropertyChanged" MappingName="CustomerName"/> 
                <syncfusion:GridTextColumn UpdateTrigger="PropertyChanged" MappingName="Country"/> 
                <syncfusion:GridTextColumn UpdateTrigger="PropertyChanged" MappingName="ShipCity"/> 
            </syncfusion:SfDataGrid.Columns> 
        </syncfusion:SfDataGrid> 
 
We have attached the modified sample for your reference. You can download it from the below location. 
 
 
Regards, 
Balamurugan R 
 


Silvio
Replied On March 30, 2017 03:08 AM

Thank you for your sugestion and help.

Balamurugan Rajaraman [Syncfusion]
Replied On March 31, 2017 12:16 AM

Hi Silvio 
 
Thank you for the Update. 
 
Please let us know if you have any further assistance on this. 
 
Regards, 
Balamurugan R 


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

;