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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top