>I have a grid (in a container class) that I have initially set the names of the columns and the RecordSource is set on the fly. The first time that I load the data, the grid remains the same [ie size of columns and header captions]. The second time I load data in the same session, the grid takes on the size of the cursor fields (C(50)) and the header captions become that of the cursor (recordsource property of the grid) that is being used. The cursor name is different every time loading the data.
>
>Does anyone have any suggestions on how to keep the grid the same, but load the new data into the grid?
>
Set recordsource of the grid to the empty string before you load data and restore after.
Thisform.grid1,Recordsource = ""
...
Thisform.grid1.Recordsource = ...
--sb--