System.Windows.Forms.DataGridViewCellStyle Class

Represents the formatting and style information applied to individual cells within a System.Windows.Forms.DataGridView control.

See Also: DataGridViewCellStyle Members

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataGridViewCellStyleConverter))]
[System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridViewCellStyleEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class DataGridViewCellStyle : ICloneable

Remarks

The System.Windows.Forms.DataGridViewCellStyle class lets you share style information across multiple System.Windows.Forms.DataGridView cells, rows, columns, and row or column headers, avoiding the memory requirements of setting style properties on individual cells. For more information about classes that have a property of type System.Windows.Forms.DataGridViewCellStyle and how they relate to each other, 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