System.Windows.Forms.DataGridViewCellStyleContentChangedEventArgs Class

Provides data for the DataGridView.CellStyleContentChanged event.

See Also: DataGridViewCellStyleContentChangedEventArgs Members


public class DataGridViewCellStyleContentChangedEventArgs : EventArgs


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 object, however, the corresponding PropertyNameChanged event occurs but the DataGridView.CellStyleContentChanged event does not occur.

Use the DataGridViewCellStyleContentChangedEventArgs.CellStyleScope property to determine which property has the System.Windows.Forms.DataGridViewCellStyle that changed. Use the DataGridViewCellStyleContentChangedEventArgs.CellStyle property to retrieve the updated value.

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