Unusual DataRow error
I use:
...
myDataTable.EndLoadData();
myDataTable.AcceptChanges();
foreach(DataRow dr in myDataTable.Rows)
{
string buf=dr["pole"].ToString()+"Jinks"; // works OK
dr["pole"]=buf; // IndexOutOfRangeException "There is no row at position ..."
int np= myDataTable.Columns["pole"].Ordinal; // works OK
dr.ItemArray[np]=buf; // doesn't write to row, row status=Unchanged
}
Error is not in every field and in every row. Thesame is if buf is a number(double, decimal). May be someone know how to fight with it? Help, please.
thed0ct0rPosted Oct 14, 2003, 6:30 AM
pgpnoPosted Sep 22, 2003, 9:11 AM
Andrzej WegierskiPosted Sep 17, 2003, 2:00 PM
AdministratorPosted Mar 31, 2003, 1:41 AM
AdministratorPosted Mar 30, 2003, 11:21 PM
AdministratorPosted Mar 28, 2003, 7:43 AM
AdministratorPosted Mar 28, 2003, 7:31 AM
AdministratorPosted Mar 28, 2003, 6:28 AM
AdministratorPosted Mar 28, 2003, 12:48 AM