>I have a grid on a pageframe that displays fine when you first display the page. To add a record to the grid, the user clicks a command button, goes to a new screen, enters the data and returns to the first page. The grid is supposed to refresh and include new record. However, whenever you return to the grid, the columns resize, the headers are now field names not the header names I set and it displays all columns in the select statement that populates the grid (I don't want to display data for the primary key field). Any ideas why grid is resizing. I run a grid_resize method to refresh data?
>
>Thanks,
>Doug
Doug,
Try setting the RecordSource to blank before requerying.
RecordSource=''
Requery()
RecordSource = "MyData"
Also Vlad has written about this extensively so you could checkout the FAQ's.
HTH
Caroline