DevExpress ASPxComboBox lost selected item after postback

<dx:ASPxComboBox ID="cbxSname" ClientInstanceName="cbxSname" Font-Names="微软雅黑" Font-Size="12px"
runat="server" EnableCallbackMode="true" CallbackPageSize="20" Width="170px"
IncrementalFilteringMode="Contains" ValueType="System.Int32" ValueField="Gong_sid"
OnItemsRequestedByFilterCondition="cbxSname_OnItemsRequestedByFilterCondition"
OnItemRequestedByValue="cbxSname_OnItemRequestedByValue" TextFormatString="{0}"
DropDownStyle="DropDown" MaxLength="100">
<Columns>
<dx:ListBoxColumn FieldName="Gong_smch" Caption=" " Width="50px" />
</Columns>
</dx:ASPxComboBox>

Code is above. When you use this, make sure the value field type match the attribute ValueType which means if you have an int primary key value field, then set the ValueType to System.Int32. Or
you will meet this issue.

上一篇:Mysql字符串字段中是否包含某个字符串,用 find_in_set


下一篇:[BZOJ3992][SDOI2015]序列统计(DP+原根+NTT)