Hi Martin,
We have checked the reported issue with the provided details. By default, the SfDataGrid.SortColumnsChanged
event is triggered once the sorted columns get changed. At that moment the
view does not update completely that why the reported issue occurs. However,
you can achieve your requirement by using the below code snippet,
AddHandler sfDataGrid1.SortColumnsChanged, AddressOf OnSortColumnsChanged
Private Sub OnSortColumnsChanged(ByVal sender As Object, ByVal e As
SortColumnsChangedEventArgs)
Me.sfDataGrid1.BeginInvoke(New Action(Sub()
For Each record In Me.sfDataGrid1.View.Records
Dim data = record.Data
Next record
End Sub))
End Sub
|
We have prepared the sample based on your requirement. Please
have a look at this, and revert us if you have any concerns about this.
Regards,
Dhanasekar M.
If this post is helpful, please consider Accepting it as the
solution so that other members can locate it more quickly.
Attachment:
VB_Demo_33fd18ec.zip