DataGrid - grid selection is reset when new Data is arrived

后端 未结 3 896
囚心锁ツ
囚心锁ツ 2021-01-25 00:29

I have such DataGrid



        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 00:54

    Before clear, pick up the currently selected item (a unique identifier if you have one) then attempt to highlight it again on update and if it's not there anymore just don't highlight annything.

提交回复
热议问题