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
VulpesPosted Apr 5, 2011, 4:45 AM
Mats APosted Apr 7, 2011, 2:22 AM
data_table_global.Rows[current_row][current_col] =
and it works fine.
Thread resolvet, thank you
DBNull.Value;Sam HobbsPosted Apr 6, 2011, 6:35 PM
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.
Suthish NairPosted Apr 6, 2011, 11:00 AM