System.Windows.Forms.DataGridViewCellFormattingEventArgs.CellStyle Property

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


public DataGridViewCellStyle CellStyle { set; get; }


Documentation for this section has not yet been entered.


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


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