System.Windows.Forms.DataGridViewCellStyle: Property Members

The properties of System.Windows.Forms.DataGridViewCellStyle are listed below. For a list of all members, see the DataGridViewCellStyle Members list.

See Also: Inherited members from System.Object

Public Properties

AlignmentDataGridViewContentAlignment.

Gets or sets a value indicating the position of the cell content within a System.Windows.Forms.DataGridView cell.

BackColorSystem.Drawing.Color.

Gets or sets the background color of a System.Windows.Forms.DataGridView cell.

DataSourceNullValueobject.

Gets or sets the value saved to the data source when the user enters a null value into a cell.

FontSystem.Drawing.Font.

Gets or sets the font applied to the textual content of a System.Windows.Forms.DataGridView cell.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of a System.Windows.Forms.DataGridView cell.

Formatstring.

Gets or sets the format string applied to the textual content of a System.Windows.Forms.DataGridView cell.

FormatProviderIFormatProvider.

Gets or sets the object used to provide culture-specific formatting of System.Windows.Forms.DataGridView cell values.

[read-only]
IsDataSourceNullValueDefaultbool.

Gets a value indicating whether the DataGridViewCellStyle.DataSourceNullValue property has been set.

[read-only]
IsFormatProviderDefaultbool.

Gets a value that indicates whether the DataGridViewCellStyle.FormatProvider property has been set.

[read-only]
IsNullValueDefaultbool.

Gets a value indicating whether the DataGridViewCellStyle.NullValue property has been set.

NullValueobject.

Gets or sets the System.Windows.Forms.DataGridView cell display value corresponding to a cell value of DBNull.Value or null.

PaddingPadding.

Gets or sets the space between the edge of a System.Windows.Forms.DataGridViewCell and its content.

SelectionBackColorSystem.Drawing.Color.

Gets or sets the background color used by a System.Windows.Forms.DataGridView cell when it is selected.

SelectionForeColorSystem.Drawing.Color.

Gets or sets the foreground color used by a System.Windows.Forms.DataGridView cell when it is selected.

Tagobject.

Gets or sets an object that contains additional data related to the System.Windows.Forms.DataGridViewCellStyle.

WrapModeDataGridViewTriState.

Gets or sets a value indicating whether textual content in a System.Windows.Forms.DataGridView cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.