Solved

Combo Box update in Details View

Posted on 2008-06-09
3
927 Views
Last Modified: 2013-11-26
Im in Visual Studio 2005.  Using standard DETAILS View with a SQL Table Datasource in aspx page.  It works well  and fine however I've modified the INSERT TEMPLATE with a dropdown combo box, this dropdown has another SQL datasource containing and ID field and a NAME field for user to select from.
Then of course I want the users seletion to UPDATE the datasource.  

I need help with getting sample code to peform this update in the EVENT handler of the combo box as I understand the TEMPLATE will not perform the update.

thanks for any assistance.
0
Comment
Question by:bretbel
[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
3 Comments
 
LVL 10

Expert Comment

by:digitalZo
ID: 21749378
Can you post your code?
0
 

Author Comment

by:bretbel
ID: 21753182
Actually Im going to simplify this digitalZo.
In the INSERT ITEM TEMPLATE I've added the combo box dropdown (mentioned above) next to the text box thats bound to the datasource.  I just want the value from combo box to autofill into the text box.  This in VB is ordinarily very simple but I can't seem to get the syntax right to capture the value from one and place it in the other.
0
 
LVL 10

Accepted Solution

by:
digitalZo earned 250 total points
ID: 21757071
Something to get you started:

http://www.dotnetspider.com/resources/2314-How-place-DropDownList-DataGrid-fire-S.aspx

altho it is of datagridview and not detailsview.

i coded it for gridview in my app by changing the datagridview to gridview. you can try it that way for detailsview, if you want.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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