Freezing multiselect check

Hi
How can I freeze the multi-select check column in the data grid?

multiselect

Hi Mortoza!

You can use GridMultiSelectionModel for changing frozen property for multi-select check column.
For example:

    @Subscribe
    protected void onInit(InitEvent event) {
        if (usersDataGrid.getSelectionModel() instanceof GridMultiSelectionModel<?> multiSelectionModel) {
            multiSelectionModel.setSelectionColumnFrozen(true);
        }
    }

Regards,
Dmitriy

2 Likes

Thank you Dmitriy.