views:

40

answers:

2

Hi ,

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.

+2  A: 

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

John Weldon
Yes, It would be great help if can give any pointer on this.
Ram
A: 

you can do .

in gridcellvaliating event use some ip address regular expression validation

anishmarokey