Can you have a DropdownList in an Editable DataLister?

  • Thread starter Thread starter jack
  • Start date Start date
J

jack

Hello,

I have an Editable Datalist with a DropDownList. I can get the Get value,
but can't Set the Current Value set to the value of the current Edited Item.

Thanks,

Jack
 
I have an Editable Datalist with a DropDownList. I can get the Get value,
Do that in the itemcreated event.

Actually, you'd want to do it in the ItemDataBound event, since you need
to know the value to set it to! :-) The ItemCreated event fires
*before* the data is bound to the DataListItem.

An example of creating an databound DropDownList in an editable DataGrid
is available at:
http://aspnet.4guysfromrolla.com/articles/080702-1.aspx

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top