title: C# Winforms resize DataGridView to fill width but with wrap mode to off (allow scroll if required)
body: <p>I am quite a new to Winforms and recently I got a situation. My client prefer to have each record show as one line and want to use the slide bar if cell has larger content. Moreover, he also wants to stretch the width of "Name" column if total width of all columns is less than width of DataGridView.</p>
  
  <p>I have already set RowsDefaultCellStyle.WrapMode and ColumnHeadersDefaultCellStyle.WrapMode to false along with DataGridViewAutoSizeColumnsMode.AllCells. But it doesn't stretch "Name" column even though I set it manually.</p>