what does databind do

  • Thread starter Thread starter rodchar
  • Start date Start date
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
 
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.
 
Back
Top