473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

know value of invisible column in gridview

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
Jul 19 '07 #1
2 3031
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.

"Mariano" <x@xxx.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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

Jul 19 '07 #2
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.

"Mariano" wrote:
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
Jul 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jo | last post by:
Hi all, I have a gridview displaying a dataset and some buttons. When a certain cell of this datasetrow is empty, I want a button in that row to be visible, otherwise no button should be shown...
1
by: keithb | last post by:
I have a GridView control that has a delete button (hyperlink) in one column. The datasource table contains a column that has a true/false indicator showing whether or not the record can be...
8
by: graphicsxp | last post by:
Hi, How can I get the value of a cell that belongs to a hidden column of gridview ? Here's how I normally access the value of a cell, but it doesn't work if the column is invisible: Code :...
2
by: joe | last post by:
how to access invisible column inside gridview
4
by: =?Utf-8?B?QmFidU1hbg==?= | last post by:
Hi, I have a GridView and a SqlDataSource controls on a page. The SqlDataSource object uses stored procedures to do the CRUD operations. The DataSource has three columns one of which -...
0
by: landesjoe | last post by:
Hi, here's my problem in short: Text boxes in gridview don't seem to hold their value if the column's .Visible property is changed back and forth. I've got a form with a gridview populated from...
5
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
2
by: =?Utf-8?B?SnVsaWEgQg==?= | last post by:
Hi I've just moved from asp.net 1.1 to 2.0 so am new to gridviews and have a problem. I've got a gridview on a form in a web layer project. It has an objectdatasource object which calls a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.