How to keep values in fields after ChangeMode to Insert from Edit?

R

R Bandeira

How to keep values in fields after ChangeMode to Insert from Edit? I
am implementing a re-insert type feature, after an edit.

// Change form to insert mode
FormView1.ChangeMode(FormViewMode.Insert);

// Repopulate the form
Label.Text = "12345";
TextBox.Text = "22";

// User then gets to edit form and insert data as a new
record. But controls are losing data (fetched from previous edit
mode).

I cannot set default values to controls after changing mode. The
controls are rendering blank. What is the work around please? Thanks
in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top