Loading Databound Controls with visible = False

  • Thread starter Thread starter mianiro
  • Start date Start date
M

mianiro

Does a control such as a gridview or datalist still load with data when
it is bound to a dataset but the visibility is = False??

I have a datalist and a gridview with datasources set at design time.
The visible property is set to False at design time as well. When the
program runs ... I set the datalist to visible = True. However, no
data appears in the datalist.

Thanks for the help!
 
make sure

1.) Data is actually present, set a breakpoint.

2.) You're doing Either

MyControl.DataBind

or

Page.DataBind

before render takes place, either page_load or pre-render or in an event
handler.

HTH
 
Back
Top