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. Image for the cookie policy date

SfDataGrid UI update possible ?

Hello,

When you add to an observable collection and this is binded to a sfDataGrid the the grid is nicely updated.
What if you change an item in a row ?

What technique is used to update the UI ?

I use wpf and a viewmodel.

tnx

frank

ItemsSource="{Binding NlvLevelList, UpdateSourceTrigger=PropertyChanged,Mode=TwoWay, PresentationTraceSources.TraceLevel=High}"


1 Reply

SJ Sathiyathanam Jeyakumar Syncfusion Team February 16, 2023 05:54 PM UTC

Hi Frank,

In the editing case, you can edit the columns both through the UI and programmatically. In both cases, the UI will be automatically updated when you raise the PropertyChanged event for the editing property in your model. Your model should implement the INotifyPropertyChanged interface. There is no need to manually update the UI. 

https://help.syncfusion.com/wpf/datagrid/editing

If you need to perform any data update operations in the SfDataGrid, you can set the LiveDataUpdateMode property to 'AllowDataShapping' to enable automatic updates to the grid.

https://help.syncfusion.com/wpf/datagrid/data-manipulation#livedataupdatemode--allowdatashaping


Refer to the below UG links to get more information about DataGrid features.

https://help.syncfusion.com/wpf/datagrid/sorting

https://help.syncfusion.com/wpf/datagrid/grouping

https://help.syncfusion.com/wpf/datagrid/summaries

https://help.syncfusion.com/wpf/datagrid/filtering


Regards

Sathiyathanam


Attachment: WPFDataGridDemo_AllColumns_b7022d15.zip

Loader.
Up arrow icon