如何使用asp.net(Web表单)在GridView中隐藏链接按钮?

时间:2018-09-29 09:21:31

标签: c# asp.net gridview webforms asplinkbutton

我是C#的新手,并且在gridview中有一个linkBut​​ton,我一直试图在单击编辑按钮时将visible属性设置为false

picture gridview

这是我的链接按钮:

<asp:LinkButton runat="server" ID="bt1" ValidationGroup="breath" CausesValidation="true" CommandName="addnew"  ToolTip="addnew" Text="<span class='table-icons' style='font-size:18pt;'><i class='far fa-save'></i></span>"></asp:LinkButton>

这是我的功能修改

protected void GridView_breath_RowEditing(object sender, GridViewEditEventArgs e)
    {
        GridView_breath.EditIndex = e.NewEditIndex;
        PARAM_BREADTH_OF_RESPONSIBILITY_DAO breath = new PARAM_BREADTH_OF_RESPONSIBILITY_DAO(this._sSqlConnectionString);
        display_breath();
        breath.edit(GridView_breath);
        display_breath_form();

    }

0 个答案:

没有答案