So I have a radgrid on a form. right before the radgrid aspx code starts, I have set the row property of visible = false (ex:
<tr runat="server" id="rw1" visible="false">
On my code behind (using VB.NET) I have set the btnShowGrid_Click event to this:
rw1.visible = true
grd1.visible=true
btnHideGrid.visible = true
....
The problem I am encountering is that I press this button for the first time on the form and it will only show the row, so I have to click it again to show the radgrid.
When I click on the "Hide Grid" button, the row and grid hide, and then I click the "Show Grid" button again and everything is displayed, I dont need to click on it again.
Why is this happening?
By the way the radgrid visible property is set to true not false.
<tr runat="server" id="rw1" visible="false">
On my code behind (using VB.NET) I have set the btnShowGrid_Click event to this:
rw1.visible = true
grd1.visible=true
btnHideGrid.visible = true
....
The problem I am encountering is that I press this button for the first time on the form and it will only show the row, so I have to click it again to show the radgrid.
When I click on the "Hide Grid" button, the row and grid hide, and then I click the "Show Grid" button again and everything is displayed, I dont need to click on it again.
Why is this happening?
By the way the radgrid visible property is set to true not false.