I have a DataGridView in which I have to do cell validations for double and integer values as well as checking whether they are empty. How to do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For cell value validation you may handle DataGridView.CellValidatingEvent. Here you can process cell values as you wish. For example:
If you want to validate numbers, you may do something like that: