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
Public property Alignment enum Gets or sets a value indicating the position of the cell content.
Public property BackColor object Gets or sets the background color of the cell.
Public property Font object Gets or sets the Font of the cell text.
Public property ForeColor object Gets or set the foreground color of the cell content.
Public property Format string Gets or sets the format string applied to the textual content of a cell.
Public property IsNullValueDefault bool True if the NullValue property has been set, otherwise False.
Public property NullValue bool Gets or sets the cell display value corresponding to a cell value of null.
Public property Padding object Gets or sets the space between the edge of a DataGridViewCell and its content.
Public property SelectionBackColor color Gets or sets the background color used by a DataGridView cell when it is selected.
Public property SelectionForeColor color Gets or sets the foreground color used by a DataGridView cell when it is selected.
Public property 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
Public property ApplyStyle(style)  
Inheritance Hierarchy

elsystem.Object

elsystem.DotNetObject

elsystem.windows.forms.DataGridViewCellStyle