what does databind do

R

rodchar

hey all,

i was working on a formview and when i pressed my custom edit button to put
the formview in edit mode, i then, recursively loop thru the page controls
and see all the controls such as textboxes and other input controls.

well, when i press my custom New button to put the formview in insert mode
(using FormView1.ChangeMode(FormViewMode.Insert) i see on the screen the
input controls as normal, but when i loop thru the page controls as before it
only contains the label counterparts.

if i put a FormView1.DataBind() after the
FormView1.ChangeMode(FormViewMode.Insert) i can then see the proper input
controls.

what does DataBind really do behind the scenes? (i learn better with simple
analogies please)

thanks,
rodchar
 
J

Joe Fawcett

Managing the process by hand, assigning values from a data store to the
controls when the page or control loads and doing updates etc. when values
are changed and the page is submitted.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top