[求助]不使用Adodc控件绑定如何才能在DataGrid里显示表的内容?
Option Explicit
Private gdbConn As New ADODB.Connection
Private Sub Form_Load()
Dim lrRec As New ADODB.Recordset
Dim lsSql As String
lsSql = "select * from login "
gdbConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=CX;Initial Catalog=test"
gdbConn.Open
lrRec.Open lsSql, gdbConn, adOpenKeyset, adLockOptimistic
End Sub
不用Adodc控件绑定,用DataGrid的什么属性能显示表的内容呢?