MX-Frame Library Send comments on this topic.
DropDownAdapter
See Also
MX-Developer > User Interface - MxPart > Controls > Control Properties > Data > DropDownAdapter

Glossary Item Box

Defines the MxAdapter component from which data sources and fields are available for manipulation when using drop down lists.

Remarks

Property specifies the adapter used to retrieve data for drop down lists. In order to display data in a drop down list control, adapter must be bind to it. By attaching an adapter to a control, data source can be selected which then displays data and enables the manipulation with the data. Each control can have only one drop down adapter specified.

NOTE: Adapter must be added to the part in order to be in the list of drop down adapters in the control. See Project Components chapter for more details.

Example (MxSpace)

To see the defined DropDownAdapter 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 stockAdapter1 component in the DropDownAdapter property.

To define DropDownAdapter property

  1. In Solution Explorer open MxPart component (StockPart) which contains control (AdvancedText) for data binding.
  2. Select the desired control (AdvancedText – Last Name) on the canvas.
  3. Open Property Window.
  4. In section Data define DropDownAdapter property. Select a value (stockAdapter1) from the drop down list.

After the property is defined it is possible to define DropDownDataSourceName property. For detailed description of the property see DropDownDataSourceName chapter.

See Also

©2009 Metronik. All Rights Reserved.