PDA

View Full Version : Hiding Column Headers on a table



bakachu
12 Aug 2008, 7:04 AM
Hi

Firstly GXT is great! really fun to use.

I was just wondering if its possible to hide the column headers on a table, reason being I'm using a table for a nice layout of various information, where the value of column 1 is a property-name like 'Name' or 'Telephone Number' and column 2 is the value like 'Bakachu' or '123 456'

I understand it may be possible to do this layout with Layouts, but I quite like the text formatting and the simplicity of the table approach, the only issue is that I don't really need or want the Column Headers of the table..

If any one has any advice or of simple other ways to do something similar I would be very appreciative.

Thanks!

gslender
12 Aug 2008, 2:25 PM
don't know if this would work, but try this...

table.getTableHeader().setVisible(false);

..you may have to do this after render, so wrap in a deferredcommand

bakachu
12 Aug 2008, 10:35 PM
Thank you, that worked a treat. Didn't need the deffered command either, so its everything I was after :)

Cheers