Defines the MxAdapter component from which data can be retrieved and used for any kind of manipulation.
Remarks
Property specifies the MxAdapter component used to manipulate with data. In order to display data in a control, adapter must be bind to it. By attaching an adapter to a control, data source can be selected, which is then used to display and manipulate with data. Each control can have only one adapter component specified.
NOTE: Adapter must be added to the part in order to be in the list of adapters in the control. See Project Components chapter for more details.
Example (MxSpace)
To see the defined Adapter property on a control (Grid) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click ArticlesPart.cs. Click the grid control and open Property Window. See the selected articlesAdapter1 component in the Adapter property.
To define Adapter property
- In Solution Explorer open MxPart component (ArticlesPart) which contains control (Grid) for data binding.
- Select the desired control (Grid) on the canvas.
- Open Property Window.
- In section Data define Adapter property. Select a value (articlesAdapter1) from the drop down list.
After Adapter property is defined it is possible to define DataSourceName property. For detailed description of the property see DataSourceName chapter.