DDL into an EditItemTemplate

  • Thread starter Fransis il Mulo
  • Start date
F

Fransis il Mulo

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
 
E

Elmo Watson

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
 
F

Fransis il Mulo

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?
During RowEditing GridView event ddl doesn't exist. When can i fill the
ddl, if possible?

Thanks in advance,

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top