Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Invisible Cells in GridView

Reply
Thread Tools

Invisible Cells in GridView

 
 
Dot Net Daddy
Guest
Posts: n/a
 
      08-15-2006
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

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      08-15-2006
"Dot Net Daddy" <> wrote in message
news: 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...?


 
Reply With Quote
 
 
 
 
Dot Net Daddy
Guest
Posts: n/a
 
      08-15-2006
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" <> wrote in message
> news: 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...?


 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      08-15-2006
"Dot Net Daddy" <> wrote in message
news: oups.com...

> any ideas?


GridView1.DataSource = <DataSet / DataReader / whatever>
GridView1.Cells(0).Visible = True
GridView1.DataBind()
GridView1.Cells(0).Visible = False


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making 1 control invisible while showing another in the exact location of the invisible one Andy B ASP .Net 5 05-29-2008 03:08 AM
Invisible - Succinic acid : (AMBER ACID) Invisible krithika.143@gmail.com C++ 0 04-14-2008 06:59 PM
Writing to Cells in the Detailsview Insertmode makes cells uneditable. SixStringSlaya@gmail.com ASP .Net 0 02-28-2006 10:23 PM
How to embed invisible data in cells Olivier Matrot ASP .Net Datagrid Control 4 07-25-2005 01:08 AM
Getting the value of invisible columns/cells JLeary ASP .Net Datagrid Control 5 07-31-2003 01:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57