>Hi all,
>
>I have a grid that uses a file as record source.
>
>The user have an option to change the file this grid uses as record source. When this is done, all existing formating are discarted and I have to, programatically, format the "new" grid. Ok, this is not a problem.
>
>The problem is: All existing methods are discarted. How I (re)code the methods to the "new" grid?
>
>There is a way to, programatically, set the code for the methods?
>
>Thank you in advance,
Arlei,
Before changing recordsource set it to an empty string. It'd avoid the grid from reconstructing :
myGrid.RecordSource = ""
* Do whatever you want to preapre cursor
myGrid.RecordSource = "cursorname"
Cetin