O
osmarjunior
Is there a way to change manually the RowState property of a DataRow,
in a DataTable??
I wanna create a DataTable in memory, so I do the following:
DataRow row = tbl.DataTable.NewRow();
row[0] = Customer.ID;
row[1] = Customer.Name
tbl.DataTable.Rows.Add(row);
This is just an example. I know that the RowState property is
determined when the DataAdapter fills the DataTable. But I think that
filling the DataTable every time before an update is a little "dumb" in
certain occasions. So I'm trying to build the DataTable in memory, then
do the update. But the RowState is always equals to "RowAdded". I wanna
change that...
Regards.
Junior.
in a DataTable??
I wanna create a DataTable in memory, so I do the following:
DataRow row = tbl.DataTable.NewRow();
row[0] = Customer.ID;
row[1] = Customer.Name
tbl.DataTable.Rows.Add(row);
This is just an example. I know that the RowState property is
determined when the DataAdapter fills the DataTable. But I think that
filling the DataTable every time before an update is a little "dumb" in
certain occasions. So I'm trying to build the DataTable in memory, then
do the update. But the RowState is always equals to "RowAdded". I wanna
change that...
Regards.
Junior.