I see a lot of posts talking about using rowlayouts to change the column headers height but could someone please post an example how to accomplish this?
Thanks,
Derek
Hi Derek,
It's hard to work with RowLayouts at run-time, so the best way to do this is to set up your layout at Desing-time, which means it's hard to post a sample that it of any use.
Basically, you just go into the grid designer and go to the Column Arrangement Overview for the band. This allows you to choose to use RowLayouts and then you can design your layout. Resizing the headers is simply a matter of clicking and dragging the little square glyph at the bottom of each column header.
All of this assumes that your grid's data source is available at design-time so that the grid has the data structure, of course.
Thank you for describing how to adjust the headers at design time but I never have the data source available at design-time. If anyone has any information about using rowlayouts at run-time, please help.
Thanks
Even if your data source is not available at design-time, you could still use the grid designer to set up the bands and columns and create a layout.
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?
Of course, if you don't know the data structure, that won't help.
To set up a RowLayout at run-time, you have to understand GridBagLayouts and how they work. You might want to play around with using the RowLayoutDesigner just so you can see how it works and get a feel for which properties you will need to use.