:: Forum >> Version 1 >>

HELP: hiding columns in grid

Need some help.

I have an XML data source with about 20 columns per item.
I only need to display about 10 of them.
In addition, the data is not in the order that I need to display them.

How do I just display the columns I want? If I make those unneeded columns a width of 0, sometimes it works, sometimes it doesn't. And, when it does, if a person re-sizes the columns, the columns I set to a width of 0, get displayed.

Does anyone have an example on how to display just the desired columns? Is there a style attribute (similar to width) that would make a column hidden?

Also, the Column Names ... is there a way to change it to a different color than the default color?

Any help would be appreciated. If you need more info, just ask. I'm new to ActiveWidgets and struggling a little.

Thanks,
Carl
Sunday, January 8, 2006
use CSS to specify column to show/hide
Example
<style>
 
bodyhtml {margin:0pxpadding0pxoverflowhidden;fontTahoma 8pt;border1;}
.
active-column-{width100px;}
.
active-column-{width50pxdisplay:none;}
.
active-column-{width100px;text-align:rightbackground-color#F4F7D2}
.
active-column-{width100px;}
.
active-column-{width100px;}
.
active-column-{width50pxdisplay:none;}
</
style>
 
hope this help
Thammapat (Thai)
Sunday, January 8, 2006
Most definitely.

You're example showing the display:none is great.

Very much appreciate it.

Carl
Carl
Sunday, January 8, 2006



This topic is archived.

Back to support forum

Forum search