请问如何动态更新 ADODC控件的查询内容,并更改于之相连的datagrid 控件中相应splits的属性
我用如下代码想把datagrid的第一列设置为只读 可运行后datagrid的所有列都为只读了,而且splits 的count属性为 1 ,而我的查询语句明明有2列记录啊Adodc1.RecordSource = "select blid,bl from con_bl where uid='" & consumerId & "'"
Adodc1.RefreshSet DataGrid1.DataSource = Adodc1
DataGrid1.ReBindDataGrid1.Refresh
MsgBox DataGrid1.Splits.Count
'DataGrid1.Splits(0).Locked = True
'DataGrid1.Splits(1).Locked = False
请问如何解决谢谢