圆梦巨人中英文字幕:DataGrid 为什么不能绑定数据源

来源:百度文库 编辑:高校问答 时间:2024/04/30 16:55:37
Rs.Source = "select * from MyTable"
Rs.Open
Set DataGrid1.DataSource = Rs
DataGrid1.ReBind
Rs.Close
请问这是怎么回事?运行后提示"不能初始化数据绑定"
大哥们关注一下,谢谢了
XnnYygn :我改成这样了Rs.Open "select * from MyTable"
还是不行,不能绑定,可以不用datagrid1.rebind,只要让datagrid1能显示我的rs记录集就行谢谢

rs.CursorLocation = adUseClient
OK

改成这样就可以了.
Rs.Open "select * from MyTable"
Set DataGrid1.DataSource = Rs
DataGrid1.ReBind
Rs.Close