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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -