DATALIST1中应该绑定的是DATAFIELD把

解决方案 »

  1.   

    你没有绑定控件,右边属性窗口中datasource绑定ado,datafield列表自然就出现
      

  2.   

    对,用DATAFIELD属性与ADO控件进行绑定
      

  3.   

    The DataList control is code-compatible with the DBList control. However the DataList control is optimized to work with ActiveX Data Objects (ADO).BoundColumn Property returns or sets the name of the source field in a Recordset object that is used to supply a data value to 
    another Recordset.DataSource Property returns or sets a data source through which a data consumer is bound to a database.DataField Property returns or sets the name of a field that a data consumer will be bound to.BTW,if you want to bind recordset to datalist control dynamicly,you can not concern datafield property.If you use data enviroment in you project.Datasource set to connection,and datamember set to which command you want to bind.Good Luck