The search & reset buttons are in a class called: .mx-grid-search-controls within the datagrid.
If you create a custom class on the datagrid and style this class within it you can position it wherever you want.
You can use the css tool position:absolute for example.
By adjusting the with of the datagrid, the search area becomes smaller with less columns.
You can also create a smaller datagrid by putting it in a lay out grid with 2 columns for example.