ChangeMode FormView From Insert to Edit After Inserted
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all I want to change FormView mode From Insertmode to editmode after Inserted .Any one have ides...I try this but nothing change It's still be insert mode :sigh: Protected Sub FormView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertedEventArgs) Handles FormView1.ItemInserted e.ExceptionHandled = True If e.Exception Is Nothing Then e.KeepInInsertMode = False Me.FormView1.ChangeMode(FormViewMode.Edit) FormView1.DataBind() Else e.KeepInInsertMode = True End If End Sub Please help