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

Grid not sorting when data changes

I have a simple grid with a sorted column. When the values in that column change, the grid is not resorting the data.


Attachment: GridSorting_537298e6.zip

3 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team April 3, 2023 05:50 PM UTC

Hi Russell,

We have checked the reported scenario from our end. By default, SfDataGrid manages the sorting, filtering, grouping, and summaries during data updates based on SfDataGrid.LiveDataUpdateMode property. 

UG Link: https://help.syncfusion.com/wpf/datagrid/data-manipulation

But in your scenario, you are using the complex binding (Ex: Number.Number). Complex and indexer properties don’t support LiveDataUpdateMode the runtime changes do not get reflected. As we documented in the limitation,

UG Link: https://help.syncfusion.com/wpf/datagrid/data-manipulation#limitations

However, we have modified the sample to achieve your requirement. Please have look at this.

Regards,

Vijayarasan S


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: ModifiedSample_545ab655.zip

Marked as answer

RU Russell April 3, 2023 10:47 PM UTC

Perfect, thanks. It was the LiveDataUpdateMode that I was missing.



VS Vijayarasan Sivanandham Syncfusion Team April 4, 2023 06:38 AM UTC

Russell,

If you are satisfied with our response, please mark it as an answer. Otherwise, please let us know if you have any further queries on this. We are happy to help you😊.


Loader.
Up arrow icon