Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1080
  • Last Modified:

live binding a tcheckbox to a dataset field

Hi Experts,
I would like to link a TCheckbox's checked property to the value of a field in a TClientDataSet.
When the value in the field changes to a specific value, the Checkbox would appear checked.
Can anyone tell me if this is possible?

Using the livebindings designer, I have linked the checkbox's checkedState to the dataset's field. This has created a BindsourceDB object and a BindingsList object. I'm not sure where to go next, however. Is there somewhere I can add a condition to this link?

Many thanks,
Adam
0
adamianf
Asked:
adamianf
1 Solution
 
Sinisa VukCommented:
if you link to specific field to Checked property of checkbox that should be enough. I assume that you have boolean type of field. If not, here is blog topic about conversion to boolean value.
0
 
adamianfAuthor Commented:
thanks for the link.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now