list?你看看他是怎么在编程的时候添加内容的呀,然后对应的从数据库读信息,然后添加就可以了。

解决方案 »

  1.   

    找了半天没有看到list这个东西,是不是listview?
    private void refreshFree()
    {
    this.freeView.Items.Clear();
    for(int i=0;i<this.ds.Tables[0].Rows.Count;i++)
    {
    string[] subItems = new string[]
    {
    this.ds.Tables[0].Rows[i]["id"].ToString(),
    this.ds.Tables[0].Rows[i]["start"].ToString(),
    this.ds.Tables[0].Rows[i]["num"].ToString()
    };
    this.freeView.Items.Add(new ListViewItem(subItems));
    }
    }
      

  2.   

    不是这个,是System.Web.UI.MobileControls.List不过还是谢谢你