我想在GridViewUpdated事件中访问服务器端的GridViewDataComboBoxColumn的选定值。你知道它怎么样?
这是AspxGridView
的列 <dx:GridViewDataComboBoxColumn Name="Sprint_id" Caption="Sprint" FieldName="refSprint_id" VisibleIndex="8">
<PropertiesComboBox ValueType="System.Int32" DataSourceID="sdsSprintler" TextField="adi" ValueField="sprint_id">
</PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
组合可以填写,但我无法访问GridView更新事件中的选定项目
KR,
Çağın
答案 0 :(得分:1)
试试这个:
object cat1 = ((ASPxComboBox)grid.FindEditRowCellTemplateControl(
grid.Columns["Sprint_id"] as GridViewDataComboBoxColumn, "Cat1")).Value;
更多信息:
http://www.devexpress.com/Support/Center/e/E1358.aspx
http://search.devexpress.com/?q=%22GridViewDataComboBoxColumn%22