CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 8/4/2006 3:44:53 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 124 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
artzoop
Asp.Net User
Dropdownlist in GridView edit row possible?8/4/2006 3:44:53 PM

0/0

Hi,

I have a GridView that has Edit enabled.  Is there a way to cause an editable field in a row to utilize a Dropdownlist, instead of the default textbox entry?  When a user edits a row, I want to restrict what values they can enter for a particular field, such as "Chicago", "New York", or "Los Angeles" -- and not some other city they might type in a textbox.  So when a user selects "Edit" for a particular row, the databound field showing the city becomes a dropdownlist -- with the current city value selected; the user can change that city by selecting another in the dropdownlist.

I read Scott Mitchell's helpful article at http://aspnet.4guysfromrolla.com/articles/061002-1.aspx -- however this addresses using DataGrids -- not GridViews. 

Any suggestions or examples much appreciated!

Thank you,

Greg

DarrellNorton
Asp.Net User
Re: Dropdownlist in GridView edit row possible?8/4/2006 4:48:03 PM

0/0

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Beginning Expression Web Authors: Zak Ruvalcaba, Pages: 474, Published: 2007
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
ASP.NET 2.0 Everyday Apps For Dummies Authors: Doug Lowe, Pages: 504, Published: 2006
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006
Expert VB 2005 Business Objects Authors: Rockford Lhotka, Pages: 670, Published: 2006
Beginning Visual Basic 2005 Databases Authors: Thearon Willis, Pages: 736, Published: 2006
A First Look at ASP.NET V. 2.0 Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 498, Published: 2004

Web:
GridViewGuy Add a simple template column to the GridView and place a DropDownList inside .... Is it possible to move the drop down menu for each category to a new row ...
How to initialize dropdownlist value in a gridview column edit ... I have dropdown list in a gridview column edit template. It works OK, except when I edit a row, the dropdown list does not initialize to the ...
GridView Edit DropDownList Selected - .Net 2.0 - bytes Originally Posted by kageyone I have a gridview in .net 2.0 with a dropdownlist of ... Edit) { DropDownList ddStatus = (DropDownList)e.Row. ...
Walkthrough: Displaying a Drop-Down List While Editing in the ... NET GridView control's built-in advanced functionality to add a drop-down list to the editing display. Tasks illustrated in this walkthrough include: ...
dropdownlist in gridview edit mode : gridview, edit, dropdownlist ... Dec 11, 2007 ... in gridview edit mode i want to use two dropdownlists when user select value ... Row.FindControl("TextBox1") Dim H As DropDownList = e.Row. ...
CodeProject: Editing and Displaying Database Values through a ... Jul 24, 2008 ... An article explaining how to edit and display database values in a DropDownList in a GridView column; Author: eyeseetee; Section: Web ...
Dropdownlist in Gridview Edit Template - ASP.NET Forums You need to access it with findcontrol from one of the gridview .... Rows(index) . ‘Save dropdownlist from edit template insatnce in the ...
Populate dropdown list on row edit in gridview - ASP Message Board Populate dropdown list on row edit in gridview ASP.NET. ... The dropdown list needs to be populated on the gridview row editing event and on the textchanged ...
Web Things Considered: DropDownList inside a GridView (or DataGrid) 4) Hookup RowCreated event on the GridView so that we can populate the cities into the particular row's DropDownList. 5) Add postback event for getting the ...
Nesting the DropDownList to Gridview in ASP.NET 2.0(C#) To nest the DropDownList control to GridView control is very helpful to show the ... DropDownList ddl = (DropDownList)e.Row.FindControl("dropdownlist1"); ...




Search This Site:










datasource wizard failing to see controls

how to make a dll ?

why it doesn't create .css and global.asax automaticly?

basic faq's that need to be answered before i install vs2005 exp ed.

visual web developer express hangs when exiting web page

the code folder

is it possible???

datasets in vwd and vs2005

how to run install and run sample downloaded project of microsoft learning resources

error 40 - connecting sql server to northwind. basic data access tutorial.

index.aspx startpage

can i use vswd 2005 ee to connect to existing sql server 2000 db?

gridview won't export to ms excel

can't start visual web developer express

make vwd use "place code in a separate file" by default?

"add a gridview control to allow editing"

getting vwd 2005 express to use a remote database rather than the default local one?

did not execute session_end event when logout

problem with usercontrols and masterpages

are there some problems if i use static variable store value instead of hiddenfield in asp.net 2.0?

edit sql server object permissions via vwd

sending e-mail

i can't find my auto format in my properties windows

grid layout

publishing a website?

the asp.net 2.0 web application made by chinese windows xp + english microsoft visual web developer 2005 express edition can't run under english edition windows xp ?

eror: "could not find stored procedure 'dbo.aspnet_checkschemaversion'."

vwd express?

microsoft report designer

button control question

  Privacy | Contact Us
All Times Are GMT