sfDataGrid Sort Descriptor shows the sort on header but no sort is done
Hi,
I wanted to sort the data of a column programmatically, the header row shows the arrow indicating the sorting on the wanted direction, but the data is not sorted (the data is a collection).
If then I click to sort the sorting is done, any idea?
I have .NET8, Syncfusion 27.2.2, Windows 11.
Thanks
Attachment: SfDataGrid_Net80_3f7e5eb8.zip
Hi,
thanks to take time to check this issue.
I looked you example and made running, the sorting on your example is working.
While looking your example I thought to try to make sorting on another column, and with this one is working.
So my problem is that it is working with a string type but not working with a type DateTime.
Where I can find a description of hot to sort a DateTime progra
Output Image:
Attachment: SfDataGrid_Net8.0_6f2bc96e.zip
Hi,
the sorting par looks the same on my side, I also tried to generate random dates like you did, but not working.
I tried to copy most of settings from my side to you example but it is always working with yours, the key difference I see that I did not test is to put the sfDatagrid to a TabControlAdv.
What may help to identify where I do something wrong is this effect:
As soon as I insert with the user interface a character to a filter row cell the entries are suddenly automatically showed sorted correctly by date...
Manikanda Akash
Attachment: SfDataGrid_Sorting_76765223.zip
I probably found where is the difference.
On my case I have a OrderInfo "ObservableCollection" and not a "List".
I define the sorting before to add the orders to the collection.
I tried to apply the sorting after adding all the OrderInfo to the collection and the sorting is correct.
Is it normal that when adding an orderinfo to an "ObservableCollection" the new added order is presented at the bottom and the active sorting has no effect on this new entry ?
Manikanda Akash
Hi,
this solved my problem, I added
sfDataGrid1.LiveDataUpdateMode = LiveDataUpdateMode.AllowDataShaping;
Thanks for the super support.
Manikanda Akash
- 9 Replies
- 2 Participants
- Marked answer
-
DW Daniele Wyss
- Nov 15, 2024 09:44 AM UTC
- Nov 28, 2024 07:36 AM UTC