Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate a row in a grid ??
Message
 
 
To
20/10/2004 08:59:48
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00952968
Message ID:
00953017
Views:
15
See message #295799

I've searched by "validate grid Marcia" and got few hits...

>Hello everybody !!
>
>I'm searching for an easy way to validate a row in a grid!?
>
>I have a cursor "X" as result from an sql-select command!
>In my form i have a grid1 with n columns (textboxes or comboboxes in the columns)
>Some of these objects have code at the valid event! (if .. messagebox...return 0)
>myform.grid1.recordsource = "X"
>I want to validate all textboxes/comboboxes of the aktice row in the grid at the
>beforerowcolchange event (if rowcolchange = 1 or 3 )
>The the validation returns 0 the user can not change the row, and the object with the
>wrong validation must have the focus(be the active cell?)!
>
>example:
>user enters data in column1 of row3
>user changes the row (click on row6)
>row3 is validated, textbox in column5 of row3 returns 0, messagebox and focus on column5 of row3
>
>Any help welcomed
>Best regards
>Albert
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform