DDL into an EditItemTemplate

  • Thread starter Thread starter Fransis il Mulo
  • Start date 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
 
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
 
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
 
Back
Top