作者:mobiledu2502905343 | 来源:互联网 | 2023-10-11 12:10
MysourceisinaMySQLdatabase,IvemadeanupdatecommandandnowIneedtorefreshmyDataGrid.
My source is in a MySQL database, I've made an update command and now I need to refresh my DataGrid
.
我的源代码在MySQL数据库中,我已经做了一个更新命令,现在我需要刷新我的DataGrid。
MySqlCommand cmd = new MySqlCommand(
"update request set status = " + StatusRequest(value) +
" where id = " + rowView[0].ToString() + "", conn);
MySqlDataReader myReader = cmd.ExecuteReader();
How do I refresh my DataGrid
?
如何刷新DataGrid?
6 个解决方案