如何使用LiveBindings连接数据集中的2个字段? [英] How to concatenate 2 fields from a dataset using LiveBindings?

查看:123
本文介绍了如何使用LiveBindings连接数据集中的2个字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用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个字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆