You can limit the height of the grid content and add an overflow.
For e.g. : This css class "custom-datagrid” will limit the height of the datagrid to 500px and add a vertical scroll bar.
.custom-datagrid > .mx-grid-content{
height: 500px !important;
overflow-y: scroll;
}