As long as we're getting all theoretical here, data validation should not be handled by the grid object. The grid should be able to call out to an object where you store your business rules. Then all your default control valid method code can be is something like <businessObject>.validateMe(this) and you can do something similar in the before and after rowcolchange events for row level validations. You still have to write all your business rules/validation code, of course, but instead of having it embedded in individual controls in the grid it's all in one place.
Now whether a grid is suitable as a data entry UI is another discussion which starts to verge on the TABs vs spaces discussion. -- rk -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Gene Wirchenko Sent: Wednesday, November 20, 2013 8:17 PM To: [email protected] Subject: Re: Grid: Row-Level Validation At 16:21 2013-11-20, Sytze de Boer <[email protected]> wrote: >Maybe you can try this >Create a variable before you DO FORM >(e.g. mcolnum) > >In the WHEN of the grid, number all the columns from 1 to whatever >mclonum,=1, mcolnum=2 etc > >In the valid event, DO VALCOL Which valid event? I think that you are thinking of individual controls. I am referring to row-level validation which involves more than one control's values. This validation would get triggered when a row change might occur. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04422968FB47D@ACKBWDDQH1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

