Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 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
  #1 (permalink)  
Old March 19th, 2007, 09:18 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Enable dropdownlist 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, 09:28 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

why not use a textbox when is in default mode and only the dropdown when is in edit mode??

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
  #3 (permalink)  
Old March 19th, 2007, 12:42 PM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you that does it.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Property kekec3778 Beginning VB 6 2 January 8th, 2008 06:32 AM
enable/disable checkbox in data grid on edit maddy137 ASP.NET 1.0 and 1.1 Professional 3 January 8th, 2007 01:28 AM
Enable Update and Enable Delete check boxes don't mihabib ASP.NET 2.0 Basics 2 December 7th, 2006 11:44 AM
edit dynamic dropdownlist in a datalist jacthemanus ASP.NET 1.0 and 1.1 Professional 1 September 28th, 2006 12:08 PM
How do I setup a dropdownlist for (*Type*) in edit macupryk General .NET 0 October 9th, 2004 07:33 PM





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