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

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 05:08 PM UTC Mar 31,2017 04:16 AM UTC WPF 3
loading
Tags: SfDataGrid
Silvio
Asked On March 28, 2017 05:08 PM UTC

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 05:51 PM UTC

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 07:08 AM UTC

Thank you for your sugestion and help.

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

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;