The button you're trying to find is in the
EditItemTemplate
.
The controls in that template aren't created until the
FormView
is changed to "edit" mode and bound to its data source.
Something like this should work:
If e.CommandName = "Select" Then
fvData.Caption = "Edit Data"
fvData.ChangeMode(FormViewMode.Edit)
fvData.DataBind()
Dim oButton As Button = fvData.FindControl("btnRevisi")
oButton.Visible = False
End If
However, if all you're doing is setting the visibility of the button, you can do that in the markup:
<asp:Button ID="btnRevisi" runat="server" Visible="False" ...