我正在尝试禁用控件(按钮),但它在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