datagrid 显示问题,不知问题出在哪里?
Private Sub CmdExecute_Click()Dim strSql As String
Dim rstSql As New ADODB.Recordset
strSql = "select * from pc"
rstSql.Open strSql, cnn, adOpenKeyset, adLockPessimistic
Set DgdExplorer.DataSource = rstSql
DgdExplorer.Refresh
Set rstSql = Nothing
End Sub