テーブルにデータを追加
private void button1_Click(object sender, EventArgs e) { DataRow workRow = displyDataTable.NewRow(); workRow["id"] = displyDataTable.Rows.Count; workRow[1] = "Smith"; displyDataTable.Rows.Add(workRow); }
private void button1_Click(object sender, EventArgs e) { DataRow workRow = displyDataTable.NewRow(); workRow["id"] = displyDataTable.Rows.Count; workRow[1] = "Smith"; displyDataTable.Rows.Add(workRow); }