Column fill mode causes the visible columns in the control to fill the width of the control's display area.
There are two kinds of automatic sizing in the Data Grid View control: column fill mode and content-based automatic sizing.
If the State value includes the Resizable Set flag, the Resizable property value is not inherited.
If you need to determine whether the Resizable property value of a row or column is inherited, examine its State property.
Because Not Set restores the value inheritance, the Resizable property will never return a Not Set value unless the row or column has not been added to a Data Grid View control.
When automatic sizing is disabled, you can programmatically set the exact width or height of rows, columns, or headers through the following properties: These methods will resize rows, columns, or headers once rather than configuring them for continuous resizing.
For example, if a column is hidden after it is automatically sized to fit a large cell value, the hidden column will not change its size if the row containing the large cell value is deleted.
Content-based automatic sizing modes do not affect rows, columns, or headers that you have hidden by setting the row or column Visible property or the control Row Headers Visible or Column Headers Visible properties to false.
30 5.3.1 Sizing Options in the Windows Forms Data Grid View Control 30 5.3.2 Resizing with the Mouse. If you explicitly set Resizable to True or False, however, the specified value overrides the control value is for that row or column.
28 5.2.2 Row Pre Paint and Post Paint 29 5.3 Autosizing. 33 5.3.5 Customizing Content-based Sizing Behavior. By default, the Resizable property value is based on the Allow User To Resize Columns property value for columns and the Allow User To Resize Rows property value for rows. Use content-based automatic resizing with caution when working with large amounts of data.