473,387 Members | 1,876 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,387 software developers and data experts.

Can't access datagrid textbox values when visible=false

Hi,

I have a datagrid with a number of textboxes on it.
I want one column of my table to be visible=false because it contains
the id of the record from the table.
For some reason when I set visible=true on the aspx page I can access
it no problem, but when I set visible=false the value that is returned
is always equal to ""

Dim testing8 As String = CType(e.Item.Cells(8).Controls(1),
TextBox).Text
Dim testing9 As String = CType(e.Item.Cells(9).Controls(1),
TextBox).Text

these are two lines from my code. They are identical textboxes,
except that one has visible=true and on has visible=false.

The visible=true one returns the correct value, and the visible=false
one returns "".

Any suggestions would be much appreciated.

Cheers,

Andrew
Jul 21 '05 #1
0 1426

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

Similar topics

1
by: Marc Lefebvre | last post by:
Why I was unable to hide the previous button in the following code ? private void ButtonClick(Object sender, System.EventArgs e) { Button button = (Button)sender; Button previousButton =...
1
by: Diego | last post by:
Hi, Is it possible to control the columns property of a datagrid when those colomns are automatically created at runtime? The final goal is having a column that controls the style of the rows...
8
by: tshad | last post by:
I have a column in a list where I need to keep track of some data (but not show it) and am setting it as false. This works fine in IE, but Netscape and Mozilla show a little space where the column...
2
by: Alejandro Penate-Diaz | last post by:
4
by: Kelly Dykstra | last post by:
Hi I like to make certain tab visible or not visible based on a certain condition However, after executing the following statement, it still shows TabPages(2) ( this tabcontrol has 4 tapPages...
0
by: awightma | last post by:
Hi, I have a datagrid with a number of textboxes on it. I want one column of my table to be visible=false because it contains the id of the record from the table. For some reason when I set...
9
by: dancer | last post by:
Exactly what does this mean? frmEmail.Visible = False
3
by: rishikaraj | last post by:
how to set the listview column visible= false please let me know the solution thanks
0
by: dvsriram | last post by:
hii , I am using Font class as property and showing in the propertygrid . Now i want to show only the font dialog in the propertygrid . The remaining things below the Font ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.