Solved

invisible control leaves space behind

Posted on 2006-07-15
1
253 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
1 Comment
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 500 total points
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now