Occurs when the contents of a cell need to be formatted for display.
[Visual Basic] Public Event CellFormatting As DataGridViewCellConvertEventHandler [C#] public event DataGridViewCellConvertEventHandler CellFormatting; [C++] public: __event DataGridViewCellConvertEventHandler* CellFormatting;
The event handler receives an argument of type DataGridViewCellConvertEventArgs containing data related to this event. The following DataGridViewCellConvertEventArgs property provides information specific to this event.
Property | Description |
---|---|
Cell | Gets the cell that is being formatted or parsed. |
ConvertApplied | Gets or sets a value indicating whether the value has been successfully converted. |
DesiredType | Gets the data type of the desired value to convert to. |
Value | Gets or sets the formatted or parsed value of the cell. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
DataGridView Class | DataGridView Members | Wimark.Controls Namespace