如何在GridView中创建删除按钮? [英] How to create a delete button in GridView?

查看:89
本文介绍了如何在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.


  1. 我应该使用哪个事件? (RowDeleting,Rowdeleted等)

  2. 如何从当前行获取用户名


推荐答案

这是一篇关于典型的文章DataGrid的用法

享受。

这篇关于如何在GridView中创建删除按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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