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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top