I've created a Typed DataSet to manage a Shopping Cart for a Website. I'm
trying to rewrite one of the events to check if the the ProductID already
exists, i.e. the item is already in the cart, if so update existing quantity
rather than add new entry.

Such that I have something like this...

private void ShoppingCartChanging(object source, ShoppingCartRowChangeEvent
args)
{
if (args.Action == DataRowAction.Add) {
if (this.ShoppingCart.Rows.Contains(args.Row.ProductI D)) {
DataRow dr = this.ShoppingCart.Select(args.Row.ProductID);
}
}
}

Though I don't think it looks right. With this in mind, do you think I
should override the AddShoppingCartRow method on the inherited ShoppingCart
DataTable instead? And How could I test to see if the ProductID already
exists... and then update it's Quantity?