inserting to dropdown in editItem template of datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to insert an item into a dropdown that is located within an editItem template of a datagrid column. The dropdown is only available after the edit button has been clicked. The dropdown is databound. I need to add a default value to it.

I've tried to add the item to it within the onbound event without success

Any suggestions for resolving this problem will be appreciated

Thank

Jacques Leclerc
 
Found the problem.

Within the ItemDataBound function, the code to update the dropdown was within an if statement that only allowed operations on ListItem types of Item or AlternatingItem. Adding EditItem to the condition solved the problem.

Jacques Leclerc

----- Jacques Leclerc wrote: -----

I need to insert an item into a dropdown that is located within an editItem template of a datagrid column. The dropdown is only available after the edit button has been clicked. The dropdown is databound. I need to add a default value to it.

I've tried to add the item to it within the onbound event without success.

Any suggestions for resolving this problem will be appreciated.

Thanks

Jacques Leclerc
 
Back
Top