Use CONVERT, the conversion utility provided with VSFlexGrid 8.0. The CONVERT utility also allows you to convert between the ADO/RDO and OLEDB/ADO versions of the grid.
The CONVERT utility is written in Visual Basic and is supplied in source code format, so you may modify it if you need to.