Binding Data to DropDownList in ItemTemplate
Posted on 2007-11-16
I have a grid with editable dropdownlist. I would like to bind data consisting of numbers (using FOR loop) to the dropdownlist which is not retrieved from the database but from a function. Only the specific row's value is retrieved from the database.
Secondly, in the Insert form there are two dropdowns from one column. This works quite fine while inserting, but while editing how do I bind one part of the data to one dropdown and the other part to the other dropdown.
this is the data => 12:54. In the database, it is stored in one column.
While editing, 12 should be bind to one dropdown and the 54 should bind to another dropdown while updating the table.
I hope I have been clear in asking the question.
Thanks in advance.