Wimark.Controls Class Library  

DataGridView.CellValidating Event

Occurs when the cell is validating.

[Visual Basic]
Public Event CellValidating As DataGridViewCellValidatingEventHandler 
[C#]
public event DataGridViewCellValidatingEventHandler CellValidating;
[C++]
public: __event DataGridViewCellValidatingEventHandler* CellValidating;

Event Data

The event handler receives an argument of type DataGridViewCellValidatingEventArgs containing data related to this event. The following DataGridViewCellValidatingEventArgs property provides information specific to this event.

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.
ColumnIndex Gets the column index of the cell that raised the event.
FormattedValue Gets the formatted contents of the cell that needs to be validated.
RowIndex Gets the row index of the cell that raised the event.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

DataGridView Class | DataGridView Members | Wimark.Controls Namespace