DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Item", typeof(string)));
dt.Columns.Add(new DataColumn("Color", typeof(string)));
dt.Rows.Add(new string[] { "table", "brown" });
dt.Rows.Add(new string[] { "chair", "white" });
dataGridView1.DataSource = dt;
操作的部分
DataView view = new DataView(this._Table);
view.RowFilter = "Item='" + "table" + "'";
DataTable table = view.ToTable();
dataGridView3.DataSource = table;
這招真的很棒,30000筆資料5個欄位,不到2秒就秀出來了... 感謝你
回覆刪除也感謝你的收看了,
刪除收看還回應,
感謝