关于mshflexgrid与datagrid的区别
load事件中Set MSHFlexGrid1.DataSource = Adodc1看不到数据,Set datagrid1.DataSource = Adodc1行代码如下:
注意::::运行后看不到表里看不到数据,如果是datagrid表,set datagrid1.DataSource=adodc1就没问题
Private Sub Form_Load() '载入
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\win8桌面\vb进销存\jxc.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from 提货表 where 单号 =" & Text1.Text & ""
Adodc1.Refresh
Set MSHFlexGrid1.DataSource = Adodc1
MSHFlexGrid1.Refresh
End Sub