User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Gridview

  #1  
Jan 9th, 2008
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

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."
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Gridview

  #2  
Jan 9th, 2008
I got it working just writing the GV over and over in each section. real pain in the rear. if anyone knows the solution, i am still interested, though....
--
"Dummy."
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 6:17 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC