Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

know value of invisible column in gridview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mariano - 19 Jul 2007 16:55 GMT
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
Mike - 19 Jul 2007 17:10 GMT
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.

> 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
[quoted text clipped - 4 lines]
> Thanks a lot,
> Mariano
Doug Salomon - 19 Jul 2007 18:40 GMT
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.

> 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
[quoted text clipped - 4 lines]
> Thanks a lot,
> Mariano

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.