If you wish to set the Resizable of all rows of the Datagridview to false, you can try to use the Row Template to Customize Rows in the Windows Forms DataGridView Control.
DataGridViewRow row = this.dataGridView1.RowTemplate;
row.Resizable = DataGridViewTriState.False;