| |

VerySource

 Forgot password?
 Register
Search
View: 632|Reply: 1

Ask the datagridview control cell editing and verification issues!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-20 23:20:01
| Show all posts |Read mode
After the edit event of the datagridview control occurs, how can I write code in the validating event to determine whether the input is wrong? When I add a cell, I need to enter single-precision or double-precision data. As a result, I entered a letter. How can I judge the input error? Because there are many types of data, and the type of the field value of each field is not necessarily the same, I cannot judge one by one. Is there a general way to achieve such a function? Can you give me an example?
Very anxious, please help to see, thank you in advance! !!
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 23:27:01
| Show all posts
It seems that datagridview cannot be validated. You need to find the edit line of datagrid, and then judge it in the background
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list