GridView Colun which is not visible is not rendered

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?
 
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?

Try something like this

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top