Hi!
Are you sure code in the Valid event running at all? Did you tried to put messagebox("Somtheing") in the Valid event ans see what happens? It should work. If it does not works, then probably your grid lost all columns and code in them because reconstruction. Read the "VFP Grids" artcile in the August Universal Thread Magazine (
http://www.levelextreme.com/Magazine/August2001/), maybe you will find answer there.
Also, to do complex validation you can use AfterRowColChange event of the grid.
>hi vlad
>good day
>
>i have already tried putting code inside the valid event of text box. but it did not work out. is there any other property which is to be set to activate the
>valid even of textbox.
>
>And also i want to perform cross-field validation..like i want to validate
>one column of my grid with the other.
>
>so please help, and i hope i've made my self more clear this time...
>
>Regards
>
>Sunny
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.