<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.
DevExpress ASPxComboBox lost selected item after postback
最新推荐文章于 2020-12-03 16:14:20 发布
本文详细介绍了ASPxComboBox控件的配置方法,包括其属性设置、事件处理及使用技巧,旨在帮助开发者高效地利用该组件提升网页交互体验。
932

被折叠的 条评论
为什么被折叠?



