Kari
You haven't made clear what the problem actually is! Where do you want the cursor to be at edit time? Is the grid editable or is it set to disabled? Is the underlying table set to read-only? etc.
Can you eleaborate as to :
why you've used the This.&lcPageFrame..&lcPage..Enabled notation :
are you storiing your pageframe and its page in variables?
why?
are there more than 1 pgf on the form?
do you not know what page the grid's on?
what's with the ".."
Terry
>I have grid with editboxes, sparse = .F. Gird is in a pageframe. Setting the from into edit mode moves cursor to the beginning of the active editbox.
>
>Disabling or enabling page in pageframe causes the problem. Everything works fine if I comment the next line.
>
>This.&lcPageFrame..&lcPage..Enabled = IIF(This.gcMode = cMODEVIEW, .T., .F.)
>
>This happens only when columns sparse = .F., with sparse = .t. works fine.
>
>Any suggestions, how to make this work?
>-kari
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.