• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

dynamic width of 2 fields, 2nd field width = 1st field width

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a flextable where the cell widths of the various columns end up being based on the data displayed. The flextable is in a scrollable panel because it might be large. I'm trying to add headers to the columns, but not in the first row of the table because I don't want it to scroll.
I could put another flextable or grid above for labels, however I don't know how to poll the width of the column in the flextable in order to set the width of the corresponding label cell.
Any suggestion on either a better way to do this not using an additional separate table, or a suggestion on how to get the width of the columns in order to set the corresponding column in the label table?
Many Thanks
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rich,

Would you like to show us the code?

Regards,
Dan
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic