Hi Priyanka,
use the below code to make it stick on the page
use the tracker table as class for the datagrid2 and make the datagrid2 to some fixed height as it will get scroll to have a clear view and add overflow-y: auto to that datagrid.
.tracker_table .mx-name-head-row {
}
Go to your project's theme folder and open the custom-variables.scss
Add the following CSS
.datagrid-header
{
position: sticky;
top: 0;
z-index: 10;
background-color: white;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); (Optional)
}