Rank: Advanced Member Groups: Member
Joined: 8/11/2008 Posts: 37
|
I have a grid with visible=false. On button click I set it to 'true'. The grid is shown but only the border and the footer. What can I do to show the content? If I set visible=true on start the grid is shown normally.
Uwe
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Try to populate the Grid when you set its Visible to true, not when the page is loaded. I believe the Grid discards everything when it is set to invisible.
Another workaround is to enclose the Grid inside a DIV, then set that DIV' style to "display:none" when you wish to hide the Grid.
Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 8/11/2008 Posts: 37
|
How should I populate the Grid? On Button_Click I set the Grid.Visible=true; set the DataSource and DataBind(). Something else to do?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. That's it.
|