System.Windows.Forms.DataGridView.CellStyleContentChanged Event

Occurs when one of the values of a cell style changes.

Syntax

public event DataGridViewCellStyleContentChangedEventHandler CellStyleContentChanged

Remarks

The DataGridView.CellStyleContentChanged event occurs when a property value of a System.Windows.Forms.DataGridViewCellStyle object returned by one of the following properties changes:

If one of these properties is set to a different System.Windows.Forms.DataGridViewCellStyle, however, the corresponding PropertyNameChanged event occurs, but the DataGridView.CellStyleContentChanged event does not occur.

For row, column, and cell properties, the name of the PropertyNameChanged event begins with "Row", "Column", or "Cell" (for example, DataGridView.RowDefaultCellStyleChanged).

For more information about handling events, see Consuming Events.

Requirements

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