Video: Accessing GridView Invisible Columns
By AzamSharp
Views: 3119

Sometimes you need to hide the sensitive information displayed in the GridView control. You can always use the DataKeys to hide the primary key but what about other data which is not the primary key? How can you hide that data and after hiding how can you access it again without making it visible to the user.

In this video I will demonstrate how to access invisible columns inside the GridView control.



Download the code

By AzamSharp


Enter Comment/Feedback
  •  
  •  
  •  
  •  
  •  

Comments/Feedbacks
Subject: datakeysname
Name: mohd sabir ali
Date: 7/23/2007 5:29:32 AM
Comment:
datakeysname build by 2 column order_id and product id.

one is access by
gv.datakeysname[e.Rowindex].value

how will acess second column value
Subject: Re: datakeysname
Name: Su Chia Te
Date: 7/23/2007 9:33:50 PM
Comment:
hi mohd sabir ali,

referring to the final part of the video, you can choose not to use datakeysname at all and use hidden labels for both

OR

you can use one datakeysname and other hidden label, it's all up to you :)
Subject: Great!
Name: Srini
Date: 9/14/2007 7:33:06 AM
Comment:
Simple and Sweet! Thanks for the information. But do you know why the cells property returns empty string when thatcell is invisible?
Subject: Great Demo.. but
Name: Keith Rull
Date: 11/2/2007 10:30:58 AM
Comment:
Great Demo Azam! although the video and the voice over is not in synch but overall its pretty good.
Subject: RE: Great Demo But...
Name: AzamSharp
Date: 11/6/2007 9:36:06 AM
Comment:
Hi Keith Rull,

First of all thanks for the help that provided for creating the screencasts. I am recording 10 frames per second and I guess I talk a little bit fast. I will slow down in future screencasts.
Subject: Gridview
Name: squigger
Date: 11/9/2007 6:50:00 AM
Comment:
Nice video, useful, concise.
Subject: GridView Video
Name: Mirza
Date: 11/23/2007 4:16:46 AM
Comment:
It really good.. thanks alot
Subject: gridvideo feedback
Name: dharmarao
Date: 1/10/2008 7:02:25 AM
Comment:
Video is Good and



Join WebHost4Life.com






Copyright GridViewGuy 2007-2008