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.
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.