Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Use a datarelation to automatically populate and save info from datagrid dropdowns

Posted on 2004-04-20
2
Medium Priority
?
278 Views
Last Modified: 2008-03-06
Environment: ASP.NET web application, VB.net server side code, SQL Server 2k database

I have a datagrid and, to simplify the problem, let's say that it contains two columns: ClientName and InsideSales

I have a dataset that contains two datatables - Clients and Sales.  Clients has a SalesID column and that is the primary key of the Sales table.  I know how to create the dataset, the datatables, and the appropriate datarelation for SalesID.

I would like the following functionality:

1) The datagrid should populate and display SalesName.
2) When a row is edited, the Sales drop-down should default to the correct SalesName of course.
3) If the user chooses a new SalesName from the drop down and saves the row, the logic should automatically save the appropriate salesID in the Clients table.

Can this be done with the datarelation?  I would like to do it this way if so.  Does the datarelation somehow bind that chosen drop down id to the Client table SalesID?
0
Comment
Question by:MrDeveloper
2 Comments
 
LVL 8

Accepted Solution

by:
nishikanth earned 2000 total points
ID: 10874931
0
 

Author Comment

by:MrDeveloper
ID: 11151899
thank you nishikanth - I'm very sorry for the delay in awarding your points.  Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question