GridView Colun which is not visible is not rendered

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a column in my GridView which is not visible.

As a result it does not get rendered.

I want to be able to access the value in this column from my JavaScript.

What other way can I do this?
 
I have a column in my GridView which is not visible.

As a result it does not get rendered.

I want to be able to access the value in this column from my JavaScript.

What other way can I do this?

Try something like this

<asp:TemplateField visible="false">
<ItemTemplate>
<input ID="..." type="hidden" runat="server" value='<%# Eval("...")
%>' />
</ItemTemplate>
</asp:TemplateField>
 
Back
Top