ASP GridView in which Column Invisible [modified]
-
I need a column in GridView to be invisible. I tried with some code and its throwing some error. Can anyone help me with this...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...
modified on Friday, June 27, 2008 2:58 AM
-
I need a column in GridView to be invisible. I tried with some code and its throwing some error. Can anyone help me with this...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...
modified on Friday, June 27, 2008 2:58 AM
-
But now if you plan on do that then don't even think about recovering the cell's value on code behind. At least I've never been able to... :doh:
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
-
But now if you plan on do that then don't even think about recovering the cell's value on code behind. At least I've never been able to... :doh:
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
-
Ariel Kazeed wrote:
ecovering the cell's value on code behind.
What do you mean?
We are not a Code Charity
I mean something like...
//Assume First Gridview column is not visible
Integer ID = Gridview.Cells[0].TextThat would throw an exception. Yes, ASP.NET knows there is a column there even though you cannot see it. Problem is, since the value of that particular column is not printed on the page, it only exists at databinding time. Hence, in this case GridView.Cells[0].Text returns "", that's what I meant.
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."