如何为Datagrid中的每一行添加删除按钮? [英] How to add Delete button for every row in Datagrid?

查看:194
本文介绍了如何为Datagrid中的每一行添加删除按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个datagrid,显示名为Name,Wc,NC,Edate的列的数据。我想在datagrid中的每一行添加一个删除按钮,这样当单击它时,只有该条目从数据库中删除。

解决方案

参考以下文章......



1. 在ASP.Net中的DataGrid中插入,更新和删除 [ ^ ]。

2. 向DataGrid添加删除列 [ ^ ]。

3.使用Confirma GridView删除 [ ^ ]

I have a datagrid which shows data for the columns named Name,Wc,NC,Edate.I want to add a delete button to every row in datagrid so that when it is clicked only that entry gets deleted from database.

解决方案

Refer the below articles...

1. Insert, Update And Delete in DataGrid in ASP.Net[^].
2. Add a Delete Column to Your DataGrid[^].
3. GridView Delete, with Confirmation[^].


这篇关于如何为Datagrid中的每一行添加删除按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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