I have a little problem to dock a grid with a panel.
What i have done is to first dock a panel in the top of the form. What i then want to do is to dock a datagrid so it Fills the whole form but not so it will go inunder the panel that is docked at the top of form(I have attached a picture how it looks like).
What i try to achieve is when the form will be maximized the datagrid will also be bigger and the columnheaders will be just under the panel as now and then also fill out in the sides and bottom of form.
If i dock the datagrid with Fill, the columnheaders will come inunder the panel wich i dont want.
Thanks in advance!

Attachments docking.JPG 21.77 KB
8 Years
Discussion Span
Last Post by Liszt

i found out that events could be used so SizeChanged and some mathematics did it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.