ComponentOne True DataControl 8.0
Property Expressions Page

The Property Expressions page is used to maintain the PropertyExpressions collection. Use the PropertyExpressions property to access the PropertyExpressions collection in code.

True DataControl provides you with a powerful feature: you can associate expressions with any property of any control belonging to the parent form of the TData control. This allows you to make True DataControl maintain control property values automatically, without writing any code. See Control Property Expressions for details.

To create a new entry in the Control Properties list, expand the name of the desired control in the Available Controls list, then select the property you want to create an expression for. Alternatively, you can type the fully qualified property name (such as Label1.Font.Bold) into the Property box. After you have specified the property, click the New button, or right-click the Control Properties list and choose New from the context menu. Then you can type the desired expression in the Value Expression box, or create the expression in the Expression Editor.

To remove a control property from the list, select it and click the Delete button, or right-click it and choose Delete from the context menu. You can change the evaluation order of the control properties by dragging individual items within the Control Properties list.

When you select an item in the Control Properties list, the other controls on the page display the properties of the selected property expression:

Property

This edit box represents two properties of a PropertyExpression object: ControlName and PropertyName. Together they form a fully qualified property name starting with a control name, such as Label1.BackColor. Nested properties such as Label1.Font.Bold are also supported. You can select a node in the Available Controls tree view, that will fill the Property edit box with a full property name. Or you can type a fully qualified property name in this edit box manually.

ValueExpression

Specifies an expression that provides the value for the associated property at run time.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback