B4J Question How do you programmaticaly set the width of columns in a Tableview?

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,

After setting the column heads and row content and adding the treeview as a node to the main form, I can't figure out how to set the width of individual columns programatically.

When the form is SHOWn, all of the columns are shorter than the width of either the field headings or the content of the rows.

The content is there, and you can pull the width open manually, to see it. But it's not clear what method or property will set the width in code.
 

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,

After setting the column heads and row content and adding the treeview as a node to the main form, I can't figure out how to set the width of individual columns programatically.

When the form is SHOWn, all of the columns are shorter than the width of either the field headings or the content of the rows.

The content is there, and you can pull the width open manually, to see it. But it's not clear what method or property will set the width in code.

Got it.

tv.SetColumnWidth( ColumnIndex, Width )
 
Upvote 0
Top