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

Glossary Item Box

Defines the scheme field of which the value is displayed in the control.

Remarks

Property specifies the scheme field to which the control is bound. The value of the field is displayed in the control. Depending on the control (Text) the value can also be edited. The new value is however not stored immediately but it must be stored or executed manually on demand.
It is possible to select between fields defined in the data source specified in property DataSourceName. Only one field can be selected.

Example (MxSpace)

To see the defined DataMember property on a control (Text) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click StockPart.cs. Click the text control (Quantity) and open Property Window. See the selected Quantity field in the DataMember property.

To define DataMember property

  1. In Solution Explorer open MxPart component (StockPart) which contains control (Text) for data binding.
  2. Select the desired control (Text - Quantity) on the canvas.
  3. Open Property Window.
  4. In section Data define DataMember property. Select a value (Quantity) from the drop down list.

In runtime the value, of the selected field, will be displayed in the control. It will however not influence on the data source or the data in the data source. If the value is to be stored, operation must be triggered manually, by navigation item, workflow, button, etc.

See Also

©2009 Metronik. All Rights Reserved.