Hello, I'm trying to change a value in a datatable and I cannot get it working, does anyone have any ideas of why? Thank you.
DataTable table;
-- inserting values into the datatable --
table.rows[1].ItemArray[1] = null; //This is not working, I cannot assign the cell any value
DataTable table;
-- inserting values into the datatable --
table.rows[1].ItemArray[1] = null; //This is not working, I cannot assign the cell any value

VulpesRank #55 · 29.2K reputationPosted Apr 5, 2011, 12:45 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 6, 2011, 7:00 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 6, 2011, 2:35 PM EDT
Is this data that will be stored in a table in a database? If so then the easiest way to do this is to create a TableAdapter. If it is not for a table in a database, then probably the easiest way is to use the dataset designer to create a DataSet for the table.
Mats A54 reputationPosted Apr 6, 2011, 10:22 PM EDT
data_table_global.Rows[current_row][current_col] =
and it works fine.
Thread resolvet, thank you
DBNull.Value;