Loading Databound Controls with visible = False

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!
 
J

Just Me

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
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top