Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 8th, 2003, 06:50 PM
Registered User
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default datagrid dropdownlist values

I've been successful at putting dropdownlists in a datagrid where the values come from a SQL stored procedure. And when I click edit, it displays the original value.

My problem comes when I added code to add a new record via the datagrid footer. Now the dropdownlists on the existing rows return more values than they should. e.g. it should give a choice of 1, 2, or 3. Instead I see 1, 2, 3, 1, 2, 3, 1, 2, or 3 when I click edit to an existing record. When I click the dropdownlist on a new record, that works fine.

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 field Values within DropDownList.DataValueField rit01 ASP.NET 2.0 Basics 4 May 11th, 2016 03:22 AM
Bind DropDownList with null values jwiedmier BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 January 9th, 2008 02:19 AM
dropdownlist in datagrid ansowmya ASP.NET 2.0 Basics 0 June 10th, 2006 10:29 PM
Passing values from dropdownlist sparc ASP.NET 1.0 and 1.1 Basics 2 October 31st, 2005 09:42 AM
Dropdownlist Values From Database tranzformerz BOOK: Beginning ASP.NET 1.0 2 September 7th, 2005 03:06 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.