I have a very simple C# DataTable problem that I cannot seem to wrap my head around; it seems so strait forward but I must be missing something.
I was hoping that someone could explain to me why I'm unable update a cell value in a DataTable like shown below:
DataTable t = new DataTable(); t.Columns.Add("MyCol"); t.Rows.Add("old value"); t.Rows.ItemArray = "new value"; t.AcceptChanges(); dataGridView1.DataSource = t; //did not work. still reads "old value"
Any help would be appreciated! thanks!