日期:2014-05-18 浏览次数:20827 次
<dx:GridViewDataComboBoxColumn FieldName="ProductID" VisibleIndex="1" Caption="产品编号" ReadOnly="true"> <EditItemTemplate> <dx:ASPxGridLookup ID="gluProductId" runat="server" ClientInstanceName="gluProductId" KeyFieldName="ProductID" Width="100%" DataSourceID="ldsProduct" TextFormatString="产品编号:{0}; 产品名称:{1}" Value='<%#Bind("ProductID") %>'> <Columns> <dx:GridViewDataColumn FieldName="ProductID" Caption="产品编号" Width="100px"/> <dx:GridViewDataColumn FieldName="ProductName" Caption="产品名称" /> </Columns> <GridViewProperties> <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True"></SettingsBehavior> <SettingsPager PageSize="10"> </SettingsPager> <Settings ShowFilterRow="True" /> </GridViewProperties> </dx:ASPxGridLookup> </EditItemTemplate> </dx:GridViewDataComboBoxColumn>
------解决方案--------------------
感觉好像你代码写的有点问题哦