vb中datagrid控件怎么更新?
SetDataRec=NewADODB.RecordsetstrSQL="select……"DataRec.CursorLocation=adUseClientDataR...
Set DataRec = New ADODB.Recordset
strSQL = "select ……"
DataRec.CursorLocation = adUseClient
DataRec.Open strSQL, DataConn, 3, 3
Set DataGrid1.DataSource = DataRec
当删除掉DataRec中某个记录时,datagrid1中还是存在该记录,怎么对datagrid1中的记录更新? 展开
strSQL = "select ……"
DataRec.CursorLocation = adUseClient
DataRec.Open strSQL, DataConn, 3, 3
Set DataGrid1.DataSource = DataRec
当删除掉DataRec中某个记录时,datagrid1中还是存在该记录,怎么对datagrid1中的记录更新? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询