如何知道DataGrid Row是否被修改? [英] How to know if the DataGrid Row is modified?

查看:84
本文介绍了如何知道DataGrid Row是否被修改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在SQL中更新表格。

但条件是..,

只有修改后的行应该更新到表格。

I want to update the Table in SQL.
But the condition is that..,
Only the modified rows should be get updated to the table.

推荐答案

根据您的评论,涉及到DataTable,因此您可以使用GetChanges方法查看所有已更改的行...

< a href =https://msdn.microsoft.com/en-us/library/k2552649(v=vs.110).aspx> https://msdn.microsoft.com/en-us/library/k2552649( v = vs.110).aspx [ ^ ]

https://msdn.microsoft.com/en-us/library/5dxfaha8(v = vs.110).aspx [ ^ ]
According to your comment there is a DataTable involved, so you can use the GetChanges method to see all the rows changed...
https://msdn.microsoft.com/en-us/library/k2552649(v=vs.110).aspx[^]
https://msdn.microsoft.com/en-us/library/5dxfaha8(v=vs.110).aspx[^]


这篇关于如何知道DataGrid Row是否被修改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆