Fabio,
I agree with you.
The grid is one of our powerfull tools, but it is not as simple is it could be. Every time we need a little bit more control over a grid we come up with a big problem. But this is native to a rich language like VFP. It is desinged in manner to make a first step easy. The second will twist your bones.
Agnes
>Thanks Agnes,
>
>but my problem is a general VFP problem.
>A action can fired a cascade of events,
>and is impossible write a program independent by the event sequence.
>( VFP Team skip this problem when they project the class events structure)
>
>On this specific:
>
>....
>
>grid.SetFocus()
>
>this command fired many events, and for event sequence it is equal to
>operator click / tab on the grid, but operator not go on grid.
>
>
>My conclusion, for now:
>is impossible control a grid without set focus on it.
>
>Very bad.
>
>Fabio
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]