DataGridViewCellStyle Class
Represents the formatting and style information applied to individual cells using the DefaultCellStyle property of a DataGridView control.
Namespace: elsystem.windows.forms
Properties
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Type | Description | |
Alignment | enum | Gets or sets a value indicating the position of the cell content. | |
BackColor | object | Gets or sets the background color of the cell. | |
Font | object | Gets or sets the Font of the cell text. | |
ForeColor | object | Gets or set the foreground color of the cell content. | |
Format | string | Gets or sets the format string applied to the textual content of a cell. | |
IsNullValueDefault | bool | True if the NullValue property has been set, otherwise False. | |
NullValue | bool | Gets or sets the cell display value corresponding to a cell value of null. | |
Padding | object | Gets or sets the space between the edge of a DataGridViewCell and its content. | |
SelectionBackColor | color | Gets or sets the background color used by a DataGridView cell when it is selected. | |
SelectionForeColor | color | Gets or sets the foreground color used by a DataGridView cell when it is selected. | |
WrapMode | enum | True indicates that textual content in a DataGridView cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line. |
Methods
Name | Description | |
ApplyStyle(style) |