>>>Hi,
>>>
>>>I have been using grids and tables very much, but i have one problem:
>>>One of my grids appears blank (only border, no lines inside) while my table has no records. It works well only when i add one record from the command line.
>>>This is the first time it happens.
>>>The main proprties are: RecordSourceType 1. Alias
>>> RecordSource Mytable
>>>What do i have to do?
>>>
>>>Thanks
>>>
>>>Juan Carlos
>>
>>You could use in the grid.when event :
>>
>>if eof()
>> append blank
>>endif
>>
>
>Would this work if the table, instead of empty, has only deleted records?
Yes. It doesn't work with something like reccount(). It considers there could be filter, deleted recs etc. This is the way I use in my child tables with allowaddnew=.t. Since allowaddnew requires at least one record to exist. With set deleted on this adds a new record to child on entry and if the grid loses focus without any entry you could tablerevert checking it in grid.valid.