Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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
  #1 (permalink)  
Old March 19th, 2007, 06:00 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default enabling dropdown list on Edit

I have a dropdown list. In a GridView and I was wanting the dropdown to be readonly when first displayed and then enable when the edit button is clicked?

Does anybody have any ideas on how to go about this?
Thanks in advance
G

                <asp:TemplateField HeaderText="Status Desc">
                    <ItemTemplate>
                      <asp:DropDownList ID="ErrStatatusDDL" DataTextField="ErrorStatus"
                        DataValueField = "ErrorStatusId" DataSource= '<%# GetErrorStatuses() %>' runat="server" SelectedValue='<%# Bind("StatusId") %>' EnableTheming="True">
                      </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
  #2 (permalink)  
Old March 19th, 2007, 12:44 PM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is fine now put the read only dropdown under ItemTemplate and the enabled dropdown under EditItemTemplate.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit in Place with Dynamic Dropdown neojakey Ajax 1 September 28th, 2008 11:01 PM
Edit Value in a list box mvegter BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 August 6th, 2008 01:31 PM
Populating DropDown List in DetailsView Edit Mode. kevorkian ASP.NET 2.0 Professional 2 June 9th, 2008 12:42 PM
fill dropdown list with items when parent list isaac_cm Pro PHP 1 July 10th, 2006 05:41 AM





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