Datagridview cellvalidating in c

11 Aug

Following your suggestion, I blocked the Cell Validated, the Cell Validating events and placed the code within the Cell Enter event, and the Message Box shows up when I click any cell in the column.

datagridview cellvalidating in c-43datagridview cellvalidating in c-71datagridview cellvalidating in c-87datagridview cellvalidating in c-37

Hi all, I need to override the event that is fired when I hit the Enter key in a datagrid.

I just tested with ' Cell Enter' event and I found that it works as you expect.

Can you try please with Cell Enter (also block the Cell Validated event) and let us know?

Set the Error Text property on the row to an explanatory string.

This displays an error icon with a Tool Tip that contains the error text.