C cellvalidating cancel delight dating service
Use content-based automatic resizing with caution when working with large amounts of data. The value of this property is based on the column's Auto Size Mode property value unless that value is Not Set, in which case the control's Auto Size Columns Mode value is inherited. Programmatic resizing is useful to avoid performance penalties with continuous resizing. When you programmatically resize columns that have Inherited Auto Size Mode property values of Fill, however, the calculated content-based widths are used to proportionally adjust the column Fill Weight property values, and the actually column widths are then calculated according to these new proportions so that all columns fill the available display area of the control. 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. For maximum performance, use programmatic resizing instead so that you can resize at specific times, such as immediately after new data is loaded.
The enumerations used by sizing properties and methods have similar values for content-based sizing.
The sizing mode for a column is actually determined by its Inherited Auto Size Mode property.
To configure the sizing mode for headers and rows and for columns that do not override the control value, set one or more of the following Data Grid View properties: To override the control's column sizing mode for an individual column, set its Auto Size Mode property to a value other than Not Set.
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.
Set Resizable to Not Set to restore the inheritance. You can also configure rows, columns, and headers to automatically adjust their sizes to fit their cell contents.