Gridview行编辑帮助 [英] Gridview row editing help

查看:62
本文介绍了Gridview行编辑帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在编辑该行后使一行网格视图不可见?

how to make a row of a grid view invisible after editing that row?

推荐答案

我首先想了解编辑后隐藏Row的意图。否则,在Edit事件中,您正在编辑可以访问GridVewRow的行,您只需使用Row.Visible = false使其不可见。



否则,如果您在编辑后试图退出编辑模式,可以使用网格的EditIndex属性-1 -1
I would first like to understand the intention of hiding the Row after editing. Otherwise, in the Edit event here you are editing the row you will have the access to GridVewRow and you can simply make it invisible by using the Row.Visible = false.

Otherwise, if you are trying to get out of the edit mode after editing, you can use the EditIndex property of the grid to -1


猜猜你可以尝试类似下面的内容/>
Guess you can try something like the below
Protected Sub GV1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
        Dim rw As GridViewRow = DirectCast(GV1.Rows(e.RowIndex), GridViewRow)
End Sub


这篇关于Gridview行编辑帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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