Solved

invisible control leaves space behind

Posted on 2006-07-15
1
290 Views
Last Modified: 2006-11-18
Hi Experts,
I have a grid where I have a hidden panel inside one column in every row. I am switching the visibity of panel on/off on a click of a button in each row. It's going fine, but when I switch the visibility of panel to false.......it leaves blank space where panel was displayed.... is there any way using which I can remove the panel as well as the space utilized by that panel.

thanks!
0
Comment
Question by:tech1guy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 500 total points
ID: 17115121
To solve this problem we will need:
 - code where you show/hide your panel
 - aspx page's code (part with your template column with panel and other controls if any)
 - HTML code from a browser (page source) (part where space is reflected)

I walkaround could be trimming cell's text if panel is not visible using ItemDatabound event. Like:
If Not CType(MyGrid.Rows(e.RowIndex).Cells(MyColumnIndex).FindControl("myPanel"), Panel).Visible Then
   MyGrid.Rows(e.RowIndex).Cells(MyColumnIndex).Text = String.Empty
End If
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question