Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

18 Experts available now in Live!

Get 1:1 Help Now