954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to do input validation when i am inserting new record into a datagrid ?

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?

h3ngh3ng
Newbie Poster
5 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

maybe you can use the keypress function

chuboy
Newbie Poster
1 post since Jan 2007
Reputation Points: 10
Solved Threads: 0
 
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. :)

Ravalon
Posting Whiz in Training
213 posts since Dec 2006
Reputation Points: 84
Solved Threads: 15
 

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

kapil.goyal
Light Poster
47 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You