0

I have two panels with a gridview in each. I want to expand panels on pageload but if I collapse one of the panel later I want the planel to stay collapsed on postback when I update gridview in other panel. I am trying to do this without javascript, is there a easy way to do this?

Code structure looks like this:

<asp:Panel id="1" runat="server">  //panel 1
       <table>
           <tr><td>
               <asp:GridView id="grid1" runat="server"></asp:GridView>
           </td> </tr> </table>
 </panel>

 <asp:Panel id="Panel2" runat="server">  //Panel2
         <table>
            <tr><td>
                <asp:GridView id="Grid2" runat="server"></asp:GridView>
            </td> </tr> </table>
</panel>
Programmermid
  • 588
  • 3
  • 9
  • 30

0 Answers0