473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invisible Cells in GridView

Hello,

Is there a way to access the invisible cells in the GridView from
code-behind.

Been trying this, but isn't working

For i = 0 To GridView1.Rows.Count - 1
If GridView1.Rows(i).Cells(1).Text.Equals("Y") Then
GridView1.Rows(i).Cells(0).Font.Bold = False
End If
Next

Aug 15 '06 #1
3 1223
"Dot Net Daddy" <ca********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Been trying this, but isn't working
Sigh...

How is it not working...? What's happening? What's not happening? What error
messages are you getting...?
Aug 15 '06 #2
No error messages at all. But doesnt return a result.

The reason is Cell(1) is invisible. A friend just told that for
security reasons the data in invisible cells are not populated. I have
just been advised to use DataKeys, but I don't know how to do.

I have assigned the DataKeyMember = Column1, but don't know how to
retrieve data using DataKeys.

any ideas?
Mark Rae wrote:
"Dot Net Daddy" <ca********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Been trying this, but isn't working

Sigh...

How is it not working...? What's happening? What's not happening? What error
messages are you getting...?
Aug 15 '06 #3
"Dot Net Daddy" <ca********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
any ideas?
GridView1.DataSource = <DataSet / DataReader / whatever>
GridView1.Cells(0).Visible = True
GridView1.DataBind()
GridView1.Cells(0).Visible = False
Aug 15 '06 #4

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

Similar topics

1
9331
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
11
14985
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
5746
by: Kevin S Gallagher | last post by:
I am looking for advice/code to assist in determining which cells are visible on a DGV. The code below works but wanted to see if there are better methods or perhaps the code below has issues I...
5
3984
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
2
3037
by: Mariano | last post by:
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...
9
4777
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
1269
by: desinerd | last post by:
Hi All. I am using a GridView to List contacts linked to a logged in User. I can successfully bind the Gridview with a DataTable. And the values in the GridView are correctly displayed. I...
1
1726
by: mghihor | last post by:
Dear GridView Experts! I have problems with GridView when adding a column using TemplateField. I fill GridView1 from a stored procedure. It has a Select statement and returns 14 columns,...
2
2807
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
7252
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
7153
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
7432
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...
1
7093
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
7517
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...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.