如何在 GridView 中创建删除按钮? [英] How to create a delete button in GridView?
本文介绍了如何在 GridView 中创建删除按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 GridView
中创建了另一个名为 delete 的列.单击删除时,应删除该行,或者换句话说,我需要获取当前行的用户名才能将其删除.
I made another Column in my GridView
called delete. When delete is clicked, the row should be deleted or in other words, I need to get the current row's user name to delete it.
- 我应该使用哪个事件?(RowDeleting、Rowdeleted 等...)
- 如何从当前行获取用户名?
推荐答案
这是一篇关于 DataGrid 的典型用法.
享受.
这篇关于如何在 GridView 中创建删除按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文