ExtendedDataGridView SetColumnWidths Method CleanCode C# Libraries v1.2.03 API
Sets the column widths to either fit the headers or fit the data.

Namespace: CleanCode.DataGridViewControls
Assembly: CleanCode.DataGridViewControls (in CleanCode.DataGridViewControls.dll) Version: (1.2.03)

public void SetColumnWidths()

Each call to this toggles the setting. When fitting to the data, you may set the maximum width of columns via the MaxColumnWidth property. Setting it to zero suppresses any limit.
See Also