Put a class on the data grid itself and use the following CSS selector:
.yourdatagridclass .mx-grid-toolbar
or if you're still using Mendix 4:
.yourdatagridclass .mendixDataGrid_controlPane