BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
grid.Dock = DockStyle.Fill;
int width = grid.Model.ColWidths.GetTotal(0, grid.Model.ColCount);
int height = grid.Model.RowHeights.GetTotal(0, grid.Model.RowCount);
//not needed because dockfill - need to set the parent''s clientsize
//grid.ClientSize = new Size(width, height);
this.ClientSize = new Size(width, height);