Freezing the top row in a pop-up window for datagrids

Hello everyone, is there a way to freeze the top bar with the buttons in a datagrid, so they do not disappear when scrolling down. I am talking specifially about the red portion (see image). It would be nice for the buttons such as “Select” or “Search” to be frozen so the user has them available at all time without having to scroll to the top. Is there a trick with css? Any help is appreciated!
1 answers
.mx-grid {
    overflow: unset;
    .mx-grid-controlbar {
        position: sticky;