Its not permissible to have the two selected to true, but they can both be false. I wrote code in the cellvalidating event as follows. Data Grid View Cell Validating Eve nt Args) Handles Datagrid1.
At run time, if the validation fails, the Data Grid View displays a red exclamation icon in that cell (see below).
If the fields are not all filled in for that row, I want to display a message containing the rows that need to be fixed.
Here's an update, I have figured out what needed to be done.
-Sometimes the answer to your question is the hack that works Thanks for the suggestion,sender.
Get Type returns "Data Grid View" so I tried: Msg Box(CType(sender, Data Grid View).