You need to do it in reverse order, so you'll need to iterate with for rather than use foreach:
DataRowView drv;
for(int i= goView.Count-1; i >=0; i--)
{
drv = goView[i];
if (drv["userid"].ToString().Equals("DSMI"))
{
drv.Row.Delete();
}
else
{
drv["userid"] = drv["userid"].ToString() + "Kretek";
}
}
~~Bonnie
>I had tried that, I got there is no row at position 134. Same error as doing it the other way. Do I need to accept the changes, is that why its giving me an error.