1

I've populated TableView as follow Dynamically.

enter image description here

I want data in last 6 columns to be RIGHT aligned. How can I set alignment of specific columns dynamically?

Thanks.

Govind_das
  • 67
  • 7
  • 1
    What do you mean by "dynamically"? – James_D Apr 06 '20 at 13:57
  • @James_D using code instead of Scene Builder.... In other words, "At a run time" – Govind_das Apr 07 '20 at 06:27
  • Use a cell factory and set the alignment for the cell. See, e.g. https://stackoverflow.com/questions/34917983/tableview-column-data-set-to-2-decimal-places (since these look like currency values, the formatting in that question might be useful too) – James_D Apr 07 '20 at 11:25

0 Answers0