c#WPF:DataGrid删除选定的行 [英] c# WPF: DataGrid Delete Selected Row

查看:86
本文介绍了c#WPF:DataGrid删除选定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello everyone,



我对我的WPF项目有一个问题。



我创建了一个我链接到DataBase(表)的DataGrid。我的问题是如何从DataGrid中删除选定的行(使用btn_click),并从DataBase(Tabele)中删除相同的数据。



提前感谢!

解决方案

参考 - WPF DataGrid控件 - 执行更新和删除操作 [ ^ ]

Hello Everyone,

I have one question regarding my WPF project.

I created a DataGrid which I linked to a DataBase (Table). My question is how can I delete a selected row (using btn_click) from the DataGrid and also delete the same data from the DataBase (Tabele).

Thanks in advance!

解决方案

Refer - WPF DataGrid Control - Performing Update and Delete Operations[^]


这篇关于c#WPF:DataGrid删除选定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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