I have designed a screen that uses a grid in order to browse and edit two
tables that have a one-to-many relationship. The grid displays existing
child records just fine. It also correctly enables the next available
row for entry when I programmatically APPEND BLANK - as long as there is
at least one existing record already in the grid. However, if the
grid is empty (i.e. there are no existing child records related to the
parent record in the rest of the form) and I (via a command button)
THISFORM.Grid1.SetFocus
APPEND BLANK
cRecordNumber = [Parent].cRecordNumber * one-to-many relationship link.
THISFORM.Grid1.ActivateCell(1,1)
I can see at runtime that the grid itself is selected, but the first row
is not selected or enabled for entry. I only get beeps when I try to
enter data or tab. I have tried fiddling with the ReadOnly property of
the grid and the buffering, but it doesn't affect this situation. What
am I missing? I will appreciate any and all help!
Thanks in advance,
Bernard