DataGridViewCellPaintingEventArgs::CellStyle Property

 

Gets the cell style of the current DataGridViewCell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property DataGridViewCellStyle^ CellStyle {
	DataGridViewCellStyle^ get();
}

Property Value

Type: System.Windows.Forms::DataGridViewCellStyle^

A DataGridViewCellStyle that contains the cell style of the current DataGridViewCell.

Change the appearance of the current DataGridViewCell by setting the properties of the CellStyle property.

The following code example demonstrates the use of this member.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: