asp.net - Insert hidden column in asp:GridView but still available client side -


this simple. want insert hidden column asp:griview i'll able access through javascript. pointers?

you can hide column setting cssclass property, e.g:

<style> .hidden {display:none;} </style>  ...  <asp:gridview id="gridview1" runat="server" autogeneratecolumns="false">     <columns>         <asp:boundfield datafield="id" itemstyle-cssclass="hidden"             headerstyle-cssclass="hidden" />         <asp:boundfield datafield="title" />     </columns> </asp:gridview> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -