Hiding datagrid client-side within a DIV leaves weird lines on scr

S

Scott

I have an application in which I toggle the visibility of DIV elements via
client-side Javascript. Based on server-side data values at the time the page
is rendered, I am setting the initial visibility of the DIV in the PreRender
event handler by registering a startup script that does stuff like:

document.getElementById('divName').style.visibility = 'hidden';

When the DIV in question contains a datagrid, a set of 1-pixel white lines
are still displayed that apparently equate with the inner borders of the
TABLE element that the datagrid is rendered as. Everything else within the
DIV, including the rest of the datagrid, is hidden correctly.

Does anyone know of a better technique or a work-around for this behavior?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top