Currently, i created a datagrid that enabled user to insert , update and delete from the datagrid..

My problem is..How to validate the input when the user is inserting values into a new row in the datagrid.

Any idea?

Recommended Answers

All 3 Replies

maybe you can use the keypress function

Currently, i created a datagrid that enabled user to insert , update and delete from the datagrid..

My problem is..How to validate the input when the user is inserting values into a new row in the datagrid.

Any idea?

With the CellValidating and CellValidated events. :)

just check the value of the control that is used for every function

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.