ListView只能自己一项一项地加啊..
当然你自己可以写一个通用点的方法来适合自己的应用.

解决方案 »

  1.   

    ListView 真的不能绑定数据啊?
      

  2.   

    private void LdData_Load(object sender, System.EventArgs e)
    {
    try
    { OleDbConnection mycon = new OleDbConnection(cnn);
    mycon.Open();
    OleDbdapt = new OleDbDataAdapter(strSql,mycon);
    dsT = new DataSet();
    OleDbdapt.Fill(dsT,"ld");
    Cmd= new OleDbCommandBuilder(OleDbdapt);
    for(int i=0;i<dsT.Tables["ld"].Rows.Count;i++)
    {
    listView1.Items.Add(dsT.Tables["ld"].Rows[i]["ld_name"].ToString());
    }
    this.dataGrid1.DataSource = this.dsT;
    this.dataGrid1.DataMember = "ld";
    mycon.Close();


    }
    catch ( Exception ed )
    {
    MessageBox.Show ( "错误信息: " + ed.ToString ( ) , " 测试系统",MessageBoxButtons.OK,MessageBoxIcon.Information  ) ;
    }