摘要:
public DataTable ToDataTable(DataRow[] rows) { if (rows == null || rows.Length == 0) return null; DataTable tmp = rows[0].Table.Clone(); // 复制DataRow的表结构 foreach (DataRow row in rows) tmp.Rows.Add(row); // 将DataRow添加到DataTable中 return tmp; }////////////... 阅读全文
posted @ 2013-04-26 16:36
金虹巴巴
阅读(1106)
评论(0)
推荐(0)
摘要:
定义多个Listbox,可以实现相互拖动,如listbox1,listbox2,设置如下allowdrop=true和this.listBox2.DragDrop += new System.Windows.Forms.DragEventHandler(this.ListBox1_DragDrop); this.listBox2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ListBox1_MouseDown); this.listBox2.DragOver += new System.Windows.Forms.D 阅读全文
posted @ 2013-04-26 09:41
金虹巴巴
阅读(4537)
评论(0)
推荐(0)

浙公网安备 33010602011771号