You use Microsoft .NET Framework 4 to create a Windows Forms application.
You have a DataGridView that is bound to a DataTable containing a column named ProductName.
The ProductName column can contain any valid string, except “ProductX,” “ProductY,” “ProductZ.”
You need to ensure that only valid entries for ProductName are saved when users edit the DataGridView.
Which DataGridView event should you use?
A.
CellBeginEdit
B.
Invalidated
C.
Validated
D.
Validating