•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 401,641 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,827 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 822 | Replies: 1
![]() |
Hi- I have a doosie... I think. Maybe it's easy and I am just an idiot, I am not sure. Here's how it goes...
On my web form, I have a GridView.
I pull selected values from cells on the GridView.
Sometimes I change a dropdownlist.selected value, which causes the Gridview to refresh.
This all works fine.
Here is the trouble... as soon as I set the GridView.Visible = False
Poof! All is gone. It like unloads the control as if it doesn't exist anylonger on the form.
So, I was thinking, ok, whatever, i will just declare the GridView and populate it manually.
So normally i would do something like
However, I want this GridView to be available to all the different subs.
Public GridView1 as GridView does not work... (not in a valid namespace).
Any thoughts or suggestions?
On my web form, I have a GridView.
I pull selected values from cells on the GridView.
Sometimes I change a dropdownlist.selected value, which causes the Gridview to refresh.
This all works fine.
Here is the trouble... as soon as I set the GridView.Visible = False
Poof! All is gone. It like unloads the control as if it doesn't exist anylonger on the form.
So, I was thinking, ok, whatever, i will just declare the GridView and populate it manually.
So normally i would do something like
Dim GridView1 as New Gridview
However, I want this GridView to be available to all the different subs.
Public GridView1 as GridView does not work... (not in a valid namespace).
Any thoughts or suggestions?
--
"Dummy."
"Dummy."
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- MultiLine TextBoxes in GridView edit mode (ASP.NET)
- Gridview Paging Problem. (C#)
- Getting values from GridView Controls (ASP.NET)
- Problem Updating Row in GridView (ASP.NET)
- Controlling GridView with a ListBox(multible selections enabled) (ASP.NET)
- Controls in GridView (ASP.NET)
- GridView Edit and Delete buttons (ASP.NET)
- GridView hiding cells dynamically (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Validation vb
- Next Thread: How to use dallas key function in .net


Linear Mode