How to refresh datagrid in WPF

前端 未结 6 1372
慢半拍i
慢半拍i 2020-12-08 02:48

My source is in a MySQL database, I\'ve made an update command and now I need to refresh my DataGrid.

MySqlCommand cmd = new MySqlCommand(
  \"u         


        
6条回答
  •  执笔经年
    2020-12-08 03:30

    Bind you Datagrid to an ObservableCollection, and update your collection instead.

提交回复
热议问题