System.Windows.Forms.DataGridView.CellStyleContentChanged Event

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


public event DataGridViewCellStyleContentChangedEventHandler CellStyleContentChanged


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.


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