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. The grid A needs to display the header that B is supposed to display with all usual functions like sorting on click on the header, drag drop colums etc.
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 complicated.
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.
Any other solution/suggestion is also welcome.
Thanks in Advance,