Which DataGridView event should you use?

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,” or “ProductZ.” You need to ensure that only valid entries for ProductName are saved when users edit the DataGridView. Which DataGridView event should you use?

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,” or “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



Leave a Reply 0

Your email address will not be published. Required fields are marked *