ControlsFX。 SpreadSheetView。如何隐藏行或更改行高?

时间:2017-08-26 12:43:25

标签: java javafx controlsfx

我无法隐藏行或更改其高度。

我试试:

GridBase grid = (GridBase) spreadSheetView.getGrid();
grid.setRowHeightCallback(index -> {
    return 0.0;
});

但这仅在SpreadSheetView组件初始化时有效。我需要在已绘制的组件中更改线条的高度(或隐藏它)。 尝试更改图形单元格的高度并没有任何结果。

1 个答案:

答案 0 :(得分:0)

如果你想在SpreadsheetView中隐藏一行,只需调用" hideRow"使用javadoc:https://controlsfx.bitbucket.io/org/controlsfx/control/spreadsheet/SpreadsheetView.html#hideRow-int-

中描述的行索引