Hi,

I'm working with a DataGrid where I don't know the ideal width of the
columns beforehand (or, indeed, the columns). I want it to scroll
horizontally when it overflows the viewing area, and I'd like columns to
minimally be wide enough to render their content and their
headers/footers. If I leave everything to the defaults, the table resizes
the column widths to fill the viewport exactly, which for tables with lots
of columns makes things unreadable. I tried this:

table.setMinimumTableWidth(table.getColumnCount() * 5, Style.Unit.EM);

This at least makes some of the data visible but doesn't implement the
behaviour I want.

Is there a switch I need to throw? Or do I need to do something more
complex?

Thanks,

Matthew

-- 
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: [email protected]
gchat: [email protected]
msn: [email protected]
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to