>Not really a problem, as I have sorted it out, but just a question if this is expected behaviour:
>
>I have a form with a grid bound to a table. If I add a record directly into the grid by issuing Append Blank, entereing data in the grid fields and then decide to cancel the addition by Clicking a Cancel command button and issuing TABLEREVERT(.T.) all the data in the grid blanks out. I have to reset the recordsource immediately after the Tablerevert to bring the data back into view - i.e.:
>
>THISFORM.myGrid.RecordSource = "myTable"
>
>
>I had expected to be able to issue thisform.mygrid.refresh() but this does not give consistent results - sometimes leaving the grid blank. Resetting the recordsource does give the expected result. Is this normal behaviour and am I handling it correctly?
>
>Thanks
>Barry Sutton.
No, the behavior is not normal.
If it's not broken, fix it until it is.
My Blog