ListControlDesigner.UseDataSourcePickerActionList 属性
定义
获取一个值,该值指示关联控件是否应呈现其默认操作列表。Gets a value that indicates whether the associated control should render its default action lists.
protected:
virtual property bool UseDataSourcePickerActionList { bool get(); };
protected override bool UseDataSourcePickerActionList { get; }
member this.UseDataSourcePickerActionList : bool
Protected Overrides ReadOnly Property UseDataSourcePickerActionList As Boolean
属性值
始终返回 false。Always returns false.
注解
UseDataSourcePickerActionList属性将返回, false 以便不会使用 "常用任务" 上下文菜单中的 "选择数据源" 菜单项显示数据源下拉列表。The UseDataSourcePickerActionList property returns false so that a data source dropdown is not displayed with the Choose Data Source menu item in the Common Tasks context menu. 相反,此菜单项将显示 " 选择数据源 " 对话框,该对话框允许用户选择 DataSource 和 DataTextField 和 DataValueField 属性。Instead, this menu item displays the Choose Data Source dialog box, which allows the user to select a DataSource and the DataTextField and DataValueField properties.
继承者说明
UseDataSourcePickerActionList true 如果希望从类派生的控件在 ListControl 设计时使用 "常用任务" 上下文菜单中的 "选择数据源" 菜单项显示数据源下拉列表项,请重写属性以返回。Override the UseDataSourcePickerActionList property to return true if you want the control that is derived from the ListControl class to display a data source dropdown with the Choose Data Source menu item in the Common Tasks context menu at design time.