2

I have a DGV I am binding to a list of objects. I set AutoSizeColumnsMode to Fill, so that the columns stretch to fill the entire DGV, however, currently they stretch in a way so all columns are equal width. How can i specify a weightage so that the first column be 30% of the width and the other be 70%?

Ayush
  • 41,754
  • 51
  • 164
  • 239
  • 1
    Apologies. Duplicate of http://stackoverflow.com/questions/2154154/datagridview-how-to-set-column-width – Ayush Feb 08 '11 at 19:43

1 Answers1

10

Most specifically it appears to me you could use "AutoSizeColumsMode" = "Fill" and then set "FillWeight" on each Column to the % you were looking for.

deepee1
  • 12,878
  • 4
  • 30
  • 43