G
Geir Holme
Hi all.
Could anyone help me with the following "common" chalenge?
I have 2 simple tables. Customers and Zipcodes.
Customer:
CustomerID, CustomerNr, CustomerName, ZipID
ZipCodes:
ZipID, ZipCode, ZipText
I use the ZipID in the Customer table so if it changes I can change it for
all Customers with that ID. Everey time I show this data in a grid I JOIN to
the ZipID and shows the ZipCode to the users. That works OK.
What I want to do i to use a dataset connected to a datagrid where the user
kan massupdate zipcodes. As you know the user don't know the ZipID that I
need to update the customer field with. He just want to change the ZipCode
on all the customers and push Update. I need to find the corresponding ZipID
and fill that into the corresponding Customer. Is there anyway this can be
incorporated into the dataset so I don't have to check and test and lookup
ZipID's. Mabe with some hidden columns or something.
Short Version:
When the user changes ZipCode in the datagrid I want to save the
corresponding ZipID on that Customer.
I would thing this scenario is rather common but....
I uses stored prosedures to fill and update all data in the database so I
guess I could handle it there based on the ZipCode, but if there are
anything within .NET that handles this I would like to use it.
Thanks a lott all.
-gh
Could anyone help me with the following "common" chalenge?
I have 2 simple tables. Customers and Zipcodes.
Customer:
CustomerID, CustomerNr, CustomerName, ZipID
ZipCodes:
ZipID, ZipCode, ZipText
I use the ZipID in the Customer table so if it changes I can change it for
all Customers with that ID. Everey time I show this data in a grid I JOIN to
the ZipID and shows the ZipCode to the users. That works OK.
What I want to do i to use a dataset connected to a datagrid where the user
kan massupdate zipcodes. As you know the user don't know the ZipID that I
need to update the customer field with. He just want to change the ZipCode
on all the customers and push Update. I need to find the corresponding ZipID
and fill that into the corresponding Customer. Is there anyway this can be
incorporated into the dataset so I don't have to check and test and lookup
ZipID's. Mabe with some hidden columns or something.
Short Version:
When the user changes ZipCode in the datagrid I want to save the
corresponding ZipID on that Customer.
I would thing this scenario is rather common but....
I uses stored prosedures to fill and update all data in the database so I
guess I could handle it there based on the ZipCode, but if there are
anything within .NET that handles this I would like to use it.
Thanks a lott all.
-gh