【问题标题】:BarEditItem1, what is the code to access to a combox itemBarEditItem 1、访问组合框项的代码是什么
【发布时间】:2014-04-24 20:03:05
【问题描述】:

在我的表单中,我有一个 Barmanager,其中有一个 comboboxedit1。我想知道如何访问 baredititem1(组合框)的选定项目。在普通的组合框中是:

dim q =combobox1.selecteditem

但我不能在 baredititem1 中做同样的事情 wgich 被放置在酒吧经理中。

【问题讨论】:

    标签: winforms visual-studio-2013 devexpress


    【解决方案1】:

    您可以使用barEditItem1.EditValue 属性获取当前选定的值,或者在激活编辑器时,您可以通过BarManager.ActiveEditor 属性访问当前编辑器实例,在您的情况下,您应该将其转换为ComboBoxEdit。您可以在in the documentation 阅读更多信息,其中解释了为什么您无法随时访问具体编辑器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-29
      • 2018-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-16
      相关资源
      最近更新 更多