>The grid work fine if I predefine the recordsource at the form load But if I change the recordsource at runtime (When the Users specified the other dbf for the recordsource). the predefine method will gone. So i just want to ask do you had any idea to avoid this happen?
>
>Tony
Tony, you if you want to change the RecordSource for the grid and preserve the grid settings, you have to set Grid.RecordSource = ""
before changing the RecordSource. After you reset the RecordSource you need to set Column.ControlSource properties according your new RecordSource.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison