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

Setting controls.Visible = False still takes up space

Lee


Hello all,

Let's assume that I have a GridView inside of a panel. No records, are
available for the grid, but the same amount of space is taken up on the
page.

Is there a way to ensure that when a panel or similar is set to
visible=false that the space it takes up is "re-claimed"?
--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Feb 13 '06 #1
5 6028
Change the height value of the div tag to something very small, this will
work.


"Lee" <lu*************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


Hello all,

Let's assume that I have a GridView inside of a panel. No records, are
available for the grid, but the same amount of space is taken up on the
page.

Is there a way to ensure that when a panel or similar is set to
visible=false that the space it takes up is "re-claimed"?
--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."

Feb 13 '06 #2
I thought this was done automatically.

Ensure you are not working in Grid View, as this places each object in a
definate space on the page.

Properties of your main page > You want Flow Control instead of Grid Layout.
Bear in mind you'll have to go into the HTML and remove all the positional
attributes.

Hope it helps.
Taz
Feb 13 '06 #3
Sorry, I mean tht style for the DIV, change the height value in there.
"Lee" <lu*************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


Hello all,

Let's assume that I have a GridView inside of a panel. No records, are
available for the grid, but the same amount of space is taken up on the
page.

Is there a way to ensure that when a panel or similar is set to
visible=false that the space it takes up is "re-claimed"?
--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."

Feb 13 '06 #4
Newbie wrote:
Sorry, I mean tht style for the DIV, change the height value in there.


The height attribute is completely unstandard.
Feb 13 '06 #5
Lee
Tarun Mistry enlightened me by writing:
I thought this was done automatically.

Ensure you are not working in Grid View, as this places each object
in a definate space on the page.

Properties of your main page > You want Flow Control instead of Grid
Layout. Bear in mind you'll have to go into the HTML and remove all
the positional attributes.

Hope it helps.
Taz


First, thanks to all for replying. I believe that I AM working in Flow
control since everything piles on top of each other if not placed
within table (which is what I am using).

In other words, if I highlight a control on my page and go to Layout >
Position, the value is "Not Set".

I think the problem is that I am using a Panel to place a GridView
inside and the Panel Height style is I've set explcitly to say, 150px.

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Feb 13 '06 #6

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

Similar topics

1
by: Roman | last post by:
I have built a simple user control that contains 2 buttons, a text box and a dropdownlist. When a button is clicked it sets the visible property of the textbox/dropdownlist and the button. ie the...
3
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
12
by: Daniel Walzenbach | last post by:
Hi, I want to display a Label in a DataGrid according to some condition. I therefore check whether the condition is true in the ItemDateBound EventHandler of the DataGrid. Unfortunately the...
4
by: Bass Pro | last post by:
Hi, I am creating textbox, radiobuttonlist and checkboxlist dynamically depending on data from a table. It is a questionnaire. I add the control on a Panel control during the 1st load_page event....
1
by: tshad | last post by:
I am trying to find the best way to set up RadioButtons, CheckBoxes, and textboxes on the fly. What I am doing is putting on a page questions and answers that the user has defined in his file. ...
1
by: photo | last post by:
Hi! I am new to .net (vb) and moving from classic asp. I ran into a problem that has left me with less hair on my head. For some reason, my button and calendar that sits inside an...
2
by: Scott | last post by:
I'm using a master page (mp_TableMaint.aspx) with one Content area (ID: Content1). Content1 contains several usercontrols, which are hidden. The goal is to show the correct control based on the...
4
by: Don Miller | last post by:
When an ASP.NET 2.0 web page is rendered with multiple web controls hidden from view (.visible=false) there is a noticeable gap between a rendered element (like a table) and the next visible...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.