Enum AutoSizeColumnsMode
Namespace: Syncfusion.WinForms.DataGrid.Enums
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public enum AutoSizeColumnsMode
Fields
Name | Description |
---|---|
AllCells | Calculates the width of column based on header and cell contents. So that header and cell content’s are not truncated. |
AllCellsExceptHeader | Calculates the width of column based on cell contents. So that cell content’s are not truncated. |
AllCellsWithLastColumnFill | Applies AutoSizeColumnsMode.AllCells width to all the columns except last column which is visible and sets the maximum between last column auto spacing width and remaining width to last column. |
ColumnHeader | Calculates the width of column based on header content. So that header content is not truncated. |
Fill | Divides the total width equally for columns. |
LastColumnFill | Applies AutoSizeColumnsMode.AllCells width to all the columns except last column which is visible and the remaining width from total width of SfDataGrid is set to last column. |
None | No sizing. Default column width or defined width set to column. |