expanding datagridview columns

M

Mark Broadbent

Is there a quick and painless way to fill out a datagridview so that the
column sizes fill the entire region. The rowheaderswidthsizemode property
doesnt seem to give me what I what, and I would rather not have to code the
autoresize (and update on event changes such as form resizing, although this
is obviously possible and something I have done in the past.

Regards,

Mark.
 
F

Family Tree Mike

Is there a quick and painless way to fill out a datagridview so that the
column sizes fill the entire region. The rowheaderswidthsizemode property
doesnt seem to give me what I what, and I would rather not have to code the
autoresize (and update on event changes such as form resizing, although this
is obviously possible and something I have done in the past.

Regards,

Mark.

Set the AutoSizeColumnsMode property to Fill.
 
M

Mark Broadbent

how on earth did I miss that :D thanks mike I knew a second pair of eyes
would know.
 

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

Similar Threads


Top