0
点赞
收藏
分享

微信扫一扫

GridView根据某行的内容显示或隐藏Edit按钮

凶猛的小白兔 2023-11-07 阅读 51

 

Protected Sub gdv_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles gdv.RowDataBound   
        If e.Row.RowType = DataControlRowType.DataRow Then    
            If CType(e.Row.FindControl("lblVerifiedBy"), Label).Text.Trim() <> "" Then    
                e.Row.Cells(0).Text = ""    
            End If    
        End If    
    End Sub

GridView根据某行的内容显示或隐藏Edit按钮_Text

GridView根据某行的内容显示或隐藏Edit按钮_Text_02



举报

相关推荐

0 条评论