バインド後はDataTableにデータを追加するようにしてください。 DT = new DataTable("DT"); DT.Columns.Add("Col1"); DT.Columns.Add("Col2"); DT.Rows.Add("A", "B"); this.dataGridTest.DataSource = DT; DataRow dr = DT.NewRow(); dr["Col1"] = "C"; DT.Rows.Add(dr); DT.AcceptChanges();
- Child Tree -