Solved

live binding a tcheckbox to a dataset field

Posted on 2013-12-08
2
939 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FMX enumerated colours 2 100
Delphi - replicating a form 8 74
Delphi application Soap connection 5 104
Performance of SQL statement 37 111
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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