S
staeri
I have a FormView with DefaultMode="Insert".
I want to change this to DefaultMode="Edit" with code but this doesn't
work. It's still in insert mode. I've used the following code:
Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
FormView1.ChangeMode(FormViewMode.Edit)
FormView1.DefaultMode = FormViewMode.Edit
End Sub
What is wrong? If I change to DefaultMode="Edit" manually in the aspx
file it works but not with code.
Very grateful for fast help!
Regards,
S
I want to change this to DefaultMode="Edit" with code but this doesn't
work. It's still in insert mode. I've used the following code:
Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
FormView1.ChangeMode(FormViewMode.Edit)
FormView1.DefaultMode = FormViewMode.Edit
End Sub
What is wrong? If I change to DefaultMode="Edit" manually in the aspx
file it works but not with code.
Very grateful for fast help!
Regards,
S