Just a quick question which i am fairly stumped with. I have had a look around, but it seems to be so simple there hasn't been many problems with it from other people.
My issue is that i have a toolstrip and a datagridview and the datagridview isnt finding the toolstrip above it, and when it is doing a fill dock it is cutting a part of itself off from the user.
I have created these objects using code (has to be through code) and they are inside of a splitcontainer.
Expand|Select|Wrap|Line Numbers
- ToolStrip strip = new ToolStrip();
- DataGridView grid = new DataGridView();
- DataGridViewButtonColumn columnn = new DataGridViewButtonColumn();
- grid.Dock = DockStyle.Fill;
- grid.Columns.Add(columnn);
- splitContainer1.Panel2.Controls.Add(strip);
- splitContainer1.Panel2.Controls.Add(grid);
Any help would be really appreciated.
Cheers