1: 2: 3: 4:
Dim updateButton As Button = CType(row.FindControl("btnUpdate"), System.Web.UI.WebControls.Button) If updateButton <> Nothing Then updateButton.Enabled = True End If