Link to home
Start Free TrialLog in
Avatar of digitalZo
digitalZoFlag for India

asked on

Binding Data to DropDownList in ItemTemplate

Hi all,

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.

For example:

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.
ASKER CERTIFIED SOLUTION
Avatar of DarkoLord
DarkoLord
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of digitalZo

ASKER

Hi,

Thanks for the response. Can you provide some kinda example for both the problems?