473,549 Members | 2,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ce lls(8).Controls (1),
TextBox).Text
Dim testing9 As String = CType(e.Item.Ce lls(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 1441

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

Similar topics

1
3306
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 = (Button)Session; if( previousButton == null ) {
1
1178
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 that will be hiden after he loop that sets the style of every row is done. Thanks in advance. Diego.
8
2206
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 is (even though they don't show any data). The line is: <td> <asp:Label visible="false" id="lblPositionID" runat="server" Text='<%#...
2
2148
by: Alejandro Penate-Diaz | last post by:
4
2409
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 TabControl1.TabPages(2).Visible = False Any Idea Thank Kelly
0
945
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 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...
9
1135
by: dancer | last post by:
Exactly what does this mean? frmEmail.Visible = False
3
3512
by: rishikaraj | last post by:
how to set the listview column visible= false please let me know the solution thanks
0
1252
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 ------->FontDialog -- TO Show --> Name These all below Font things i want2 hide r Enabled=false --> Size --> Unit
0
7467
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7736
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7500
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7827
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3514
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3494
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1961
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 we have to send another system
1
1079
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.