There are a SplitContainer and couple of DataViewGrids. In Designer I docked DataViewGrids to Panel1 and Panel2 of SplitContainer respectively. So, in designer everithing seems to be OK. But when I start the program, the DataGridView seems like it's docked to the main form, because the size of the Grid is the main Form size. I use the Grids with bindings to DataSet. When I try to use not binded blanc Grids, everithing is ok. The grids size matches the splitContainer Panels sizes. That drives me insane:(
DataGridView size is out of splitContainer panel even the Dock property is Fill
3.8k views Asked by moldov At
2
ok you should set dockstyle of grid to fill the panel as this