Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

DDL into an EditItemTemplate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fransis il Mulo - 04 Dec 2007 18:36 GMT
I need to populate (no databound control) a ddl when my GridView goes in
Edit Mode. I put my ddl in the EditItemTemplate and then?
During RowEditing GridView event ddl doesn't exist. When can i fill the
ddl, if possible?

Thanks in advance,

Fransis
Elmo Watson - 04 Dec 2007 18:48 GMT
If it's not databound - - you can just add the items manually at design
time.
Then, during the RowDatabound event of the Gridview, you can choose
whichever item is relevant.

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup

>I need to populate (no databound control) a ddl when my GridView goes in
>Edit Mode. I put my ddl in the EditItemTemplate and then?
[quoted text clipped - 4 lines]
>
> Fransis
Fransis il Mulo - 04 Dec 2007 18:59 GMT
Fransis il Mulo ha scritto:
> I need to populate (no databound control) a ddl when my GridView goes in
> Edit Mode. I put my ddl in the EditItemTemplate and then?
[quoted text clipped - 4 lines]
>
> Fransis

Sorry but I have found the solution, so I post it:

protected void ddl_Load(object sender, EventArgs e)
    {
            DropDownList ddl = (DropDownList)sender;
       ddl.Items.Add(...
    }

Bye Fransis
Elmo Watson - 04 Dec 2007 22:23 GMT
Elmo Watson - 04 Dec 2007 22:24 GMT

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.