Solved

live binding a tcheckbox to a dataset field

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adoquery sql  left join does not work 25 100
Dynamically Created Query 3 62
How to build JSON File in Delphi 6 3 46
can i put an image from resource into image tag ? 6 27
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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