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