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

Glossary Item Box

Defines the data source which will be used to display and manipulate data.

Remarks

Property specifies the data source whose data will be displayed in the control. Data can be used for several purposes depending on the control, its purpose and functionality. Data source fields, with appropriate definitions, are then 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 Adapter. Single control can only have one data source defined. 

Example (MxSpace)

To see the defined DataSourceName 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 Articles data source in the DataSourceName property.

To define DataSourceName property

  1. In Solution Explorer open MxPart component (ArticlesPart) which contains control (Grid) for data binding.
  2. Select the desired control (Grid) on the canvas.
  3. Open Property Window.
  4. In section Data define DataSourceName property. Select a value (Articles) 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.  

See Also

©2009 Metronik. All Rights Reserved.