user2257594
user2257594

Reputation: 11

VB.Net Grid View

I am working on VB.Net project in which I need to convert VB6.0 code to VB.Net. While converting I got to know that in VB6 in a GridView there is an event called BeforeUpdate which is not available in VB.Net. So please give me the alternative for this, which can do the same as BeforeUpdate.

Upvotes: 1

Views: 334

Answers (1)

Luke Marlin
Luke Marlin

Reputation: 1398

I think you might want to take a look at the CellValidating event, which happens before the content of the cell is updated.

You will be able to check the new value, modify it or cancel the modifications.

Upvotes: 1

Related Questions