expanding datagridview columns

  • Thread starter Thread starter Mark Broadbent
  • Start date Start date
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.
 
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.
 
how on earth did I miss that :D thanks mike I knew a second pair of eyes
would know.
 
Back
Top