Solved

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

Posted on 2004-04-20
2
243 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

912 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now