如何在WPF中设计GridView可以从数据库中删除行 [英] how to design GridView in WPF that could remove row from the database

查看:116
本文介绍了如何在WPF中设计GridView可以从数据库中删除行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要求是在gridview中显示表行,并从数据表中删除datagrid中的选定行.

Requirement is to show table rows in gridview and delete the selected row in datagrid from the datatable

推荐答案

绑定到表并使用两种方式绑定.这里有一篇很好的文章可以解释:

http://msdn.microsoft.com/zh-cn/library/aa480224.aspx
Bind to your table and use two way binding.  Here's a good article to explain:

http://msdn.microsoft.com/en-us/library/aa480224.aspx


这篇关于如何在WPF中设计GridView可以从数据库中删除行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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