System.Windows.Forms.DataGridViewCellFormattingEventArgs.CellStyle Property

Gets or sets the style of the cell that is being formatted.

Syntax

public DataGridViewCellStyle CellStyle { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Setting the properties of the object returned by the DataGridViewCellFormattingEventArgs.CellStyle property will change how the cell and its contents are displayed. To avoid performance penalties, use this property to change the cell styles rather than accessing the cell directly.

For more information about cell styles, see Cell Styles in the Windows Forms DataGridView Control

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0