使用行编辑事件禁用gridview触发器外部的控件(按钮)

时间:2017-11-03 07:20:03

标签: asp.net vb.net gridview

我正在尝试禁用控件(按钮),但它在gridview的行编辑事件触发的grideview之外。

Protected Sub gdvCountryList_RowEditing(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles gdvCountryList.RowEditing

    Try

        BtnSaveCountry.Enabled = False

        gdvCountryList.EditIndex = e.NewEditIndex
        SetCountryTable()

    Catch ex As Exception

        Throw ex

    End Try

End Sub

0 个答案:

没有答案