我有Telerik RadComboBox
,
<telerik:RadComboBox runat="server" ID="comboTown" Width="150px">
</telerik:RadComboBox>
我绑定这张桌子
Town
-----
TownOne
TownTwo
TownThree
TownFour
显示comboTown
如下
comboTown.DataSource = DB.Towns.ToList();
comboTown.DataTextField = "Town";
comboTown.DataValueField = "Town";
但是,当我selectedValue
设置comboTown
喜欢comboTown.SelectedValue= "TownTwo";
我收到此错误消息
Selection out of range
Parameter name: value
我想知道为什么,我做错了什么?