>>>>The grid has ControlSource from this table.
>>>>
>>>>But..., I can see added records only when I press the Mouse button on the Grid.
ed, dennis,
pardon me, but isn't it a given that refresh() in grids does not work? i asked this problem several times in msnews-groups.
by moving the grid up and down will the grid refresh and i tried doing it programmatically (i failed). david frankenbach gave a better method of programmatic moves with several refresh() calls.
the easiest way is :
* in the method where you visible =.t. the second form, prior to that line.
this.grid2.controlsource = "" && prevents wrecking your grid settings
this.grid2.controlsource = "yourcontrolsourcename"
if you have columns hidden, like i do because they are the real id's, go to the database designer, and drag down those fields. in your grid, these columns will be at the end and so, hide the columns. at runtime they will not appear. rest assured, when you are at a record, those fields are present.
hth,
rostand
rabear@philonline.com
rostand
"le rêve d'étoiles" - (Fr.) the dream of the stars Ü