开发者

IP address and Datagridview control

开发者 https://www.devze.com 2022-12-29 19:59 出处:网络
I am using a datagridview to get the IP address from user. Is there any way so that I can restrict the user 开发者_如何学编程to enter only valid ip address in the datagrid view cell?

I am using a datagridview to get the IP address from user. Is there any way so that I can restrict the user 开发者_如何学编程to enter only valid ip address in the datagrid view cell?

Its a desktop application.


Yes you can implement a validator that enforces the requirements you want. Are you asking how to write such a validator?


you can do .

in gridcellvaliating event use some ip address regular expression validation

0

精彩评论

暂无评论...
验证码 换一张
取 消