如何获得组合框的选定值? 提前谢谢解决方案 使用下面的代码从ComboBox中获取所选值。 for ( int row = 0 ; row < gridview1.VisibleRowCount; row ++) { ASPxComboBox ddlStatus =(ASPxComboBox)gridview1.FindRowCellTemplateControl(row, null , ddlStatus); string status = ddlStatus.SelectedValue; } I used combo box(with 2 default values) in one of the column of a devexpress gridview. How to get the selected value of that combo box?ie, in dx:ASPxGridView control, I have combobox like this<dx:GridViewDataTextColumn FieldName="selectState" Caption="selectState" VisibleIndex="1" > <dataitemtemplate> <dx:ASPxComboBox ID="selectState1" runat="server" Value='<%#Bind("selectState") %>' Width="70px" EnableCallbackMode="true" > <items> <dx:listedititem Text="on" Value="on" /> <dx:listedititem Text="off" Value="off" /> </items> </dx:ASPxComboBox> </dataitemtemplate> </dx:GridViewDataTextColumn>how to get the selected value of the combo box?Thanks in advance 解决方案 Use this below code to get the selected value from the ComboBox.for (int row = 0; row < gridview1.VisibleRowCount; row++){ ASPxComboBox ddlStatus = (ASPxComboBox)gridview1.FindRowCellTemplateControl(row, null, "ddlStatus"); string status = ddlStatus.SelectedValue;} 这篇关于devExpress GridView中的ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-08 23:16