我用的是vb6.0 设置了一个datagrid控件,可是allowupdate 设置成true之后也不能够在datagrid中进行编辑,各位高手帮帮忙,急用!谢啦

解决方案 »

  1.   

    真的是这样,根本不能在datagrid表格中更改表格内容,可能会出现的错误是什么,请指点一下
      

  2.   

    Set rspl = Nothing
    Set rspl = New Recordset
    rspl.CursorLocation = adUseClient
    rspl.Open "select yhm as '用户名',xm as '姓名',yhlb as '用户类别' from tbluser", strconns, adOpenStatic, adLockReadOnly
    Set dgplxg.DataSource = rspl
    strpl = rspl(0)这是我设置的数据源