c# - make Footer template visible and invisible in button click -


i have grid footer template. consists of text box in add value , after clicking btnadd value present in footer template append main grid. below footer template. want make footer template visible on clicking btnadd. how make visible , invisible on button click. note: button located outside grid.

<footertemplate>                         <asp:textbox id="txtfactor" style="margin-left: 210px" visible='<%# isineditmode %>' runat="server"  >                         </asp:textbox>  

you set gridview.showfooter = isineditmode codebehind on button-click.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.showfooter.aspx


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -