Sign in | Join
Last post 05-17-2008 1:59 PM by XIII. 5 replies.
Sort Posts: Oldest to newest Newest to oldest
I have a hidden template column in gridview and i am trying to access it thru javascript but it doesnt get rendered and it thorws an error.
Does anyone know how to access hidden column values thru javascript?
Hi,
how did you hide the column? Setting the Visible property to false? If so it won't get rendered. Check in your rendered html if the column's actually there.
Grz, Kris.
Your are right. I set the visible property to false and it doesnt get rendered.
I found the solution which suggests to use DataKey property of gridview but then i am not able to access datakeys in javascript.
Any idea how can i get this done?
take a look at http://search.live.com/results.aspx?q=javascript+hide+column+in+table&form=QBHP.
Another possible solution would be to use jQuery. I haven't played around with it myself but a former collegue of mine did speak of it as being something really great to manipulate html with it.
I can not use JQuery as it depends on my company policy.
I will try something else. but if you get the workaround for this, please do post it. I have been working on this issue from last couple of days.
well I was looking for a solution by searching and found this solution that works on my machine: http://www.adp-gmbh.ch/web/js/hiding_column.html.