hi,
Dock property defines which borders of the control are bound to the
container. If you place a DataGridView control in a panel and set
DataGridView's dock property to DockStyle.Fill, the datagridview will
fill the panel. Even so, the ScrollBar is also visible.
Hope this will help you