know value of invisible column in gridview

  • Thread starter Thread starter Mariano
  • Start date Start date
M

Mariano

Greetings, pls help me friends...somebody knows how could I see the value of
a cell belong to invisible column in gridview? I have a table with fields
like that : name, last name, address. I show in grid view name and last
name but address is invisble, how i see the value of these cells in a
rowdatabound event?

Thanks a lot,
Mariano
 
you can't once a column is set invisible, it is.

What you can do is have the column set to visible, but have the text color
match the background color of the row. That way the data isn't showing, and
you will be able to access that data from the cell.
 
You should be able to set it to visible in the code behind, read the value
and then hide it again.

Or alternatively, don't use hidden columns. Put the field name into the
datakey collection.
 

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

Back
Top