[thelist] Show Hide table columns in datagrid
Christian Heilmann
codepo8 at gmail.com
Fri Jun 17 02:12:22 CDT 2005
> > Anyone have a good solution JavaScript / CSS that'll allow users to show
> > / hide individual columns in a browser's rendering of a datagrid ?
> >
>
> - Setting the topmost td (or th)'s width to 0px works in ie quirksmode.
> - You may play with "display" css attribute of the column as well.
>
> I've not implemented either of these recently, and I'm unsure whether
> it will work cross-browser.
It is a bit of a nightmare, as MSIE allows for display hide / block
but real css browsers expect display: table-row. Firefox also seems
to lose all width on the row when you hide it. I'll do a test page.
--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
More information about the thelist
mailing list