我是 c# 的初学者,我可以从 datagridview 中删除它,但不能从数据库中删除,请帮助我。
commandBuilder
和 aBindingsource
将查询的结果绑定到 datagridview ,这将使您能够通过按下 delete 自动执行删除语句。请参阅此链接的详细教程:https : //docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-bind-data-to-the-windows-forms-datagridview-control
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句