DataGridViewCellStyle
Wisej.Web.DataGridViewCellStyle
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the formatting and style information applied to individual cells within a DataGridView control.
Constructors
DataGridViewCellStyle()

Initializes a new instance of the DataGridViewCellStyle class using default property values.
Properties
Alignment

DataGridViewContentAlignment: Returns or sets a value indicating the position of the cell content within a DataGridViewCell cell. (Default: NotSet
)
BackColor

Color: Returns or sets the background color of a DataGridViewCell cell.
BackgroundImage

Image: Returns or sets the background image displayed in a DataGridViewCell cell. (Default: null
)
BackgroundImageAlign

ContentAlignment: Returns or sets the background image alignment as defined in the ContentAlignment enumeration. (Default: MiddleLeft
)
BackgroundImageLayout

ImageLayout: Returns or sets the background image layout as defined in the ImageLayout enumeration. (Default: None
)
BackgroundImageSource

String: Returns or sets the theme name or URL for the background image displayed in a DataGridViewCell cell. (Default: null
)
ColSpan

Int32: Returns or sets the number of columns that this cell can use to render its content. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
CssClass

String: Returns or sets additional CSS class names to add to the DataGridViewCell.
CssStyle

String: Returns or sets the custom CSS styles to apply to the DataGridViewCell.
You can use any CSS style string.
DataSourceNullValue

Object: Returns or sets the value saved to the data source when the user enters a null value into a cell.
Font

Font: Returns or sets the font applied to the textual content of a DataGridViewCell cell.
ForeColor

Color: Returns or sets the foreground color of a DataGridViewCell cell.
Format

String: Returns or sets the format string applied to the textual content of a DataGridView cell.
FormatProvider

IFormatProvider: Returns or sets the object used to provide culture-specific formatting of DataGridView cell values.
IsDataSourceNullValueDefault

Boolean: Returns a value indicating whether the DataSourceNullValue property has been set.
IsFormatProviderDefault

Boolean: Returns a value that indicates whether the FormatProvider property has been set.
IsNullValueDefault

Boolean: Returns a value indicating whether the NullValue property has been set.
NullValue

Object: Returns or sets the DataGridView cell display value corresponding to a cell value of Value or null.
Padding

Padding: Returns or sets the space between the edge of a DataGridViewCell and its content.
RowSpan

Int32: Returns or sets the number of rows that this cell can use to render its content. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
Scope

DataGridViewCellStyleScopes: Returns the scope (the type of object) that owns the cell style.
Tag

Object: Returns or sets an object that contains additional data related to the DataGridViewCellStyle.
WrapMode

DataGridViewTriState: Returns or sets whether textual content in a DataGridViewCell cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.
Methods
Clone()

Creates an exact copy of this DataGridViewCellStyle.
Returns: DataGridViewCellStyle. A DataGridViewCellStyle that represents an exact copy of this cell style.
Dispose()

Releases all resources used by the DataGridViewCellStyle.
Last updated
Was this helpful?