How to reference hidden columns

D

David L

I'm trying to reference a hidden key column in my datagrid control without
success. I've set the columns up at design time through the property
builder, and I've set my key column's visible property to false. In my
updatecommand event I need to reference the key value for the update but I
can't get anything but an empty string when I reference
e.items.cells(1).text

Thanks in advance
 
R

Rick Spiewak

If a column's visible property is set to false, it doesn't render, and won't
participate in viewstate or postback. Get the key value from the dataset or
datatable instead.
 
E

Eliyahu Goldin

You can get the hidden column value even on client side if you hide the
column with attribute display:none in a stylesheet.

Eliyahu
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top