Click here to Skip to main content
15,902,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all..

I am new to windows application development.

I have a grid view in my application which allows to enter record. In that grid view I have columns that are "Qty" & "Rate". These two columns should accept numbers only.

How to validate that text boxes....??

Please help

Thanks in advance..
Posted

1 solution

Hi,

you can go for "CellValidating" event of the datagridview. refer below links.
How to validate a datagridviewtextboxcolumn[^]
How to validate the DataGridViewTextBoxColumn[^]

hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900