Combobox 使用 repositoryItems 类似自动完成模式
Combobox using repositoryItems like autocomplete mode
我使用 Grid
控件进行数据输入,并使用 repositoryItems 创建了一列 ComboBox
。现在我想知道是否有一个选项可以让我在 Combobox
单元格中键入一些文本以显示可能条目的下拉列表。类似于自动完成选项。
RepositoryItemComboBox
中没有这样的选项。您可以找到 RepositoryItemComboBox.AutoComplete
属性,但此 属性 不会显示可能条目的列表。它显示所有条目:
您可以使用 RepositoryItemLookUpEdit
class and set RepositoryItemLookUpEdit.SearchMode
property to AutoFilter
value:
获取可能条目的下拉列表
您还可以在 RepositoryItemGridLookUpEdit
class 中找到此类功能:
在 RepositoryItemSearchLookUpEdit
class 中:
我使用 Grid
控件进行数据输入,并使用 repositoryItems 创建了一列 ComboBox
。现在我想知道是否有一个选项可以让我在 Combobox
单元格中键入一些文本以显示可能条目的下拉列表。类似于自动完成选项。
RepositoryItemComboBox
中没有这样的选项。您可以找到 RepositoryItemComboBox.AutoComplete
属性,但此 属性 不会显示可能条目的列表。它显示所有条目:
您可以使用 RepositoryItemLookUpEdit
class and set RepositoryItemLookUpEdit.SearchMode
property to AutoFilter
value:
获取可能条目的下拉列表
您还可以在 RepositoryItemGridLookUpEdit
class 中找到此类功能:
在 RepositoryItemSearchLookUpEdit
class 中: