Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a line in a grid-display problem
Message
From
14/10/1998 23:28:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146988
Message ID:
00146990
Views:
19
Hi Jerry ---

Try doing a SetFocus to the grid after the INSERT....at least that's what I always do and I haven't had this problem...after all, if someone wants to add a record they sure as heck want to edit it.

As to the Combobox problem, try firing a DownClick in the SetFocus.


>I have a grid that's giving me trouble.(recordsource is cursor/controlsource is cursor's fields)
>
>Whenever I delete the first record from the grid and no other records exist in the grid, the line disappears but then when I INSERT a new record into the grid the row is blank-the grid doesn't show the record- but the record in the cursor exists. Only when I INSERT another record does the grid show the first record and the secord record, the first one was invisible(a calculation to a sum column gives me a correct value so I know the record is there but invisible).
>
>I refresh the grid after INSERTing a new record and I refresh after DELETEing the record. I only get this problem if the record is the first row in the grid. When other records exist, I have no problems INSERTing or DELETEing records in the grid.
>Can anyone assist?
>Any help would be appreciated.
>
>If it's not to much trouble I had another question...what's the code to have a combobox open automatically when it receives focus?
>Thanks, Jerry
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform