- I want to leave some space for search fields on the top of
datagridview but also want to dock my datagridview to parent
container, so when I open the application as maximize it should fit
the screen.
below are the images to explain you better.
- If I dock the datagridview to parent container

- if I undock datagridview and add search fields on the top of it (Without running application).

- if I open the datagridview form in maximize form it looks like this.
I want to leave some space for search fields but dock the remaining
datagridview to maximize window. (When I run the app).

use two panels, one is Dock top and another Dock fill, place your grid in the second panel and make it also dock fill. You can apply dome padding for the grid by setting padding property in the second panel.
