Solved

live binding a tcheckbox to a dataset field

Posted on 2013-12-08
2
929 Views
Last Modified: 2013-12-09
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
Comment
Question by:adamianf
2 Comments
 
LVL 26

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 39705518
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
 

Author Comment

by:adamianf
ID: 39707767
thanks for the link.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now