Hi.

I'm trying to connect a data control to a dbGrid. The data control .Connect property must be set to the proper connection string. This is no problem, except that I don't want to hard-code the UID/PWD into the property. I thought that I could just set the .Connect property at run-time, but this doesn't work--no data shows up in the dbGrid.

Alternatively, I could use an MSFlexGrid and fill it using a recordset. However, I don't know enough about MSFlexGrids to know if they will have all the features I need. I don't need to edit data, but I need to search, highlight, and select rows.

Thanks!
secrethistory