Hi guys,
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.
I have tried adding a dock to the toolstrip and invalidating the panel, but it dosent seem to work.
Any help would be really appreciated.
Cheers
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.
Code:
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
Comment