Solved

invisible control leaves space behind

Posted on 2006-07-15
1
279 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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