Binding asp:DropDownList on asp:Repeater
I'll go directly to my problem:
I have a repeater that is binded with data.
For each data row I want the user to be able to change a
field, that is represented by a DropDownList.
My problem is that when binding the DropDownList I am not
able to select a default item that is at an index != 0
Here is the code when binding the dropdown:
_dropdown.DataSource = _dataTable
_dropdown.DataTextField = "myTextField"
_dropdown.DataValueField = "myValueField"
_dropdown.Items.FindByValue(_myValue).Selected = True
these instructions are called in an overload method that
is triggered everytime a repeater item is created.
If you want me to be more specific, pleas reply...
thank's in advance
|All times are GMT. The time now is 12:10 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.