Vb.net[2008] DataGridView in Panel, when populated does not fill the whole control

  • Thread starter Thread starter Rob W
  • Start date Start date
R

Rob W

Greetings,

I have a datagridview docked to fill a panel, when it is populated with data
(bound and unbound) the columns never fully populate the datagridview
control leaving an ugly blank space to the far right.

I've looked at the following methods, but none solve my issue.

DataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill
DataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeColumnsMode.Fill

DataGridView1.AutoResizeColumns()


Can any please tell me how to resolve the empty space problem (I've had a
good look around using intellisense but can't see the wood from the trees)?


Thanks

Rob
 
Back
Top