Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Calvin Willman #1
Typed DataSet Question
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?
Calvin Willman Guest
-
xsd.exe Typed DataSet generation
Hello, I am loading a DataSet from an xml file and binding it to a hierarchical datagrid. I am trying to write some keys between the elements... -
Typed dataset used by two webservices problem
I have two webservices, for arguments sake FredWS and JimWS. They both contain webmethods which have a typed dataset JoeDataset as a parameter. If... -
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data... -
typed dataset mysql
is there any way to "auto-generate" a typed dataset from a MySQL database from Visual Studio .NET? thanks -
updating a typed dataset (newbie question?)
I created a DataGrid and bound a DataView of a typed DataSet to it (i tried with the DataSet as well but i'd rather use the DataView as i'm using it...



Reply With Quote

