[]
Class that represents a grid column.
[TypeConverter(typeof(DisablePropConverter))]
public class Column : RowCol, IDisposable
This class does not have a public constructor. You can add and remove columns using methods in the grid's Cols property, which exposes the column collection.
| Name | Description |
|---|---|
| ActiveFilter | Gets the IC1ColumnFilter that is currently filtering this column. |
| Aggregate | Gets or sets the aggregate to display on group rows for this column.. |
| AllowExpressionEditing | Gets or sets whether the Expression property of this column can be edited by clicking on the ExpressionEditor icon in the column header. |
| AllowFiltering | Gets or sets this type of filter to use for this column. |
| AllowNull | Gets or sets that cells in the Column will accept null value or null will be replaced by default value in unbound mode. |
| AllowSorting | Gets or sets whether this column can be sorted by clicking on the column header. |
| Caption | Gets or sets the text of the column's header cell. |
| DataIndex | Gets the position of the column in the data source object. |
| EditorValidation | Specifies a collection of validation rules for an editor value. |
| Expression | Gets or sets the expression for column. |
| Filter | Gets or sets the IC1ColumnFilter responsible for filtering this column. |
| GroupExpression | Gets or sets the group expression for column. |
| Index | Gets the index of this column in the Column collection. |
| this[int] | Gets or sets the cell value specified by the row index in this column. |
| Left | Gets the position of the left of this column, in pixels, relative to the grid. |
| MaxLength | Gets or sets the maximum number of characters the user can type or paste into the TextBoxBase-based editor. |
| MaxWidth | Gets or sets the maximum width of the column to use when star-sizing is enabled (StarWidth). |
| MinWidth | Gets or sets the minimum width of the column to use when star-sizing is enabled (StarWidth). |
| Name | Gets or sets the name of this column. |
| Right | Gets the position of the right of this column, in pixels, relative to the grid. |
| SafeIndex | Gets the index of this column in the Column collection. |
| Selected | Gets or sets whether this column is selected. |
| ShowButtons | Gets or sets when to display combo buttons in cells. |
| ShowSparkline | Gets or sets when to display sparkline in cells. |
| Sort | Specifies how this column should be sorted when the Sort(SortFlags, int) method is called with a UseColSort flag. |
| Sparkline | Gets the sparkline object. |
| StarWidth | Gets or sets a column's star-size, expressed in the format '{number}*'. Star-sizing option performs a XAML-style dynamic sizing where column widths are proportional to the number before the star. For example, if a grid has three columns with widths "100", "", and "3", the first column will be 100 pixels wide, the second will take up 1/4th of the remaining space, and the last will take up the remaining 3/4ths of the remaining space. Star-sizing allows you to define columns that automatically stretch to fill the width available. For example, set the width of the last column to "*" and it will automatically extend to fill the entire grid width so there's no empty space. |
| Width | Gets or sets the width of this column, in pixels (the value -1 represents the default column width). |
| WidthDisplay | Gets or sets the display width for this column, in pixels. |
| Name | Description |
|---|---|
| Clear(ClearFlags) | Clears this Column. |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Dispose(bool) | Releases unmanaged and - optionally - managed resources. |
| ~Column() | Finalizes an instance of the Column class. |
| Invalidate() | Invalidates this column, causing it to be repainted. |
| Move(int) | Moves a Column to a new position in the collection. |