I have a datagrid(A)that renders a VBox having some text
fields and a datagrid(B). There is only one column in DataGrid A,
the renderer. The grid B has headers switched off and has one
column that renders a HBox of Labels;5 of them. The grid A needs to
display the header that B is supposed to display i.e header for
each of 5 label, with all usual functions like sorting on click on
the header, drag drop colums etc.
I had to put a renderer in Grid B and not use a direct column
in datagrid for each of the 5 labels because of the way the data is
coming from the service.
I tried writing a header renderer as a HBox of all the labels
for grid A. But handling the width, sorting etc is becoming really
I bumped into the DataGridHeader class, that is the default
header. Can I extend that and provide the feature that I want to
do. I do not see any examples that extend the header on google.