Hi Pawan,
Thanks for Contacting Syncfusion support.
We have understand your requirement. Your requirement of updating the underlying property when user changes the column cell value can be achieved by setting Mode=TwoWay in Value binding property .
Refer the below code example for more details.
<sfGrid:SfDataGrid x:Name="dataGrid"
AllowGroupExpandCollapse="True"
AutoGenerateColumns="False"
ItemsSource="{Binding OrdersInfo}">
<sfGrid:SfDataGrid.Columns>
<sfGrid:GridTextColumn MappingName="OrderID" ValueBinding="{Binding OrderID, Mode=TwoWay}"/>
<sfGrid:GridTextColumn MappingName="CustomerID" ValueBinding="{Binding CustomerID, Mode=TwoWay}"/>
<sfGrid:GridTextColumn MappingName="Freight" ValueBinding="{Binding Freight, Mode=TwoWay}"/>
</sfGrid:SfDataGrid.Columns>
</sfGrid:SfDataGrid> |
Regards,
Pavithra S