c# how to make tool window maximum size set to datagridview : Quick question, I have a windows form application that I am making where I have a sizeable tool window with a datagridview filling up it's entirety. The datagridview is bigger than the window's default size so I made it so the user can expand the window however the form is able to expand past the size of the datagridview which makes it look odd. You can see past the grid and the background color of the form is revealed, etc. 

Is there a way to make the window where it can only be expanded to the maximum size of the full datagridview? 

Thank you!