我如何在服务器端访问 AspxGridView 组合框选定的值

发布于 2024-10-10 18:59:26 字数 527 浏览 0 评论 0原文

我想在 GridViewUpdated 事件的服务器端访问 GridViewDataComboBoxColumn 的选定值。你知道怎么可能吗?

这是 AspxGridView Combo 的列

    <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

I want to access selected value of GridViewDataComboBoxColumn in server side at GridViewUpdated event. Do you have any idea about how can it be?

Here is columns of 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>

Combo can fill but i couldnt access the selected item in GridView updated event

KR,

Çağın

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时光的容颜 2024-10-17 18:59:26

试试这个:

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

Try this:

object cat1 = ((ASPxComboBox)grid.FindEditRowCellTemplateControl(
   grid.Columns["Sprint_id"] as GridViewDataComboBoxColumn, "Cat1")).Value;

More info here:

http://www.devexpress.com/Support/Center/e/E1358.aspx

http://search.devexpress.com/?q=%22GridViewDataComboBoxColumn%22

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文