// BindingContext[MyTable].Position is initially 5 MyTable.DefaultView[5].Row.Delete(); // BindingContext[MyTable].Position will now be equal to 4This is fine, and I certainly don't have a problem with this behavior. However ... if my BindingContext[MyTable].Position is 0 and I delete that zero-th row from MyTable, the .Position automatically gets decremented to -1. Again, that is not a problem in itself ... but it seems that once the BindingContext .Postion gets down to -1, nothing on earth can reset it to anything else. I've tried and failed. It's like .NET is assuming that once that happens, you have no more rows in the table, even though you do.
if (i == 0 && MyTable.DefaultView.Count > 1) this.BindingContext[MyTable].Position = 1; // Now I can safely delete MyTable.DefaultView[i].Row.Delete(); // And my Position drops down to 0Anyone know of a way around this, other than the workaround I've discovered? Is this a bug or what? I'd appreciate a reasonable explanation as to this behavior. Just seems wrong to me ...