我是C#的新手,并且在gridview中有一个linkButton,我一直试图在单击编辑按钮时将visible属性设置为false
这是我的链接按钮:
<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();
}