Defines the data source from which the fields will be used to display and manipulate data when using drop down lists.
Remarks
Property specifies the data source whose data will be displayed in a control in its drop down list. Data can be used for several purposes depending on the control, its purpose and functionality. Data source fields, with appropriate definitions, are displayed in the control. The behaviour and the appearance of individual data or field are defined with field properties. To learn more about this see chapter Designing a Field.
It is possible to choose between data sources which are created in a single adapter. The adapter component, from which it is possible to select the data source, is defined in property DropDownAdapter. Single control can only have one data source defined.
Example (MxSpace)
To see the defined DropDownDataSourceName property on a control (AdvancedText) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click StockPart.cs. Click the AdvancedText control and open Property Window. See the selected Names data source in the DropDownDataSourceName property.
To define DropDownDataSourceName property
- In Solution Explorer open MxPart component (StockPart) which contains control (AdvancedText) for data binding.
- Select the desired control (AdvancedText – Last Name) on the canvas.
- Open Property Window.
- In section Data define DropDownDataSourceName property. Select a value (Names) from the drop down list.
After the data source is specified it is possible to define other properties which determine display member, value member, parameters, etc. Which property can be defined depends on the type of the control used.