liye

liye

博客园 首页 新随笔 联系 订阅 管理
                listview.Add(null);
                DataRow[] row= getdatarow();
                if (row.Length > 0)
                {
                    for (int i = 0; i < row.Length; i++)
                        listview.Add(new Frm(i + 1, row[i]["string"].ToString()));
                }
                this.combobox.DataSource = listview
                this.combobox.DisplayMember = "string";

                this.combobox.ValueMember = "string";

posted on 2010-07-26 19:43    阅读(1278)  评论(0编辑  收藏  举报