问题描述
是否可以使用Live Binding Designer将2个数据库字段串联到一个组件上?
Is there a way to use the Live Binding Designer to concatenate 2 database fields to a component?
例如,我有一个用于客户端的MemTable,我想串联
For example I have a MemTable for client, I want to concatenate the FirstName and LastName (fullname) to a label.
如果有一种方法可以做到,我理解绑定将仅在一个方向上进行(数据库字段-> ComponentProperty)。 / p>
If there is a way to do that, I understand that the binding will be in one direction only (Database fields --> ComponentProperty).
推荐答案
使用LiveBinding的最简单方法是使用LinkFillControlToField的CustomFormat属性:
The easyest way to do with LiveBinding, is to use the CustomFormat property of the LinkFillControlToField :
仅使用此格式的文本作为问题的示例:
Self.Owner.FirstName.text + + Self.Owner.LastName.text
Just use this format text as the example is the question:Self.Owner.FirstName.text + " " + Self.Owner.LastName.text
这篇关于如何使用LiveBindings连接数据集中的2个字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!