Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-04-20
2
Medium Priority
?
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

715 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