Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

live binding a tcheckbox to a dataset field

Posted on 2013-12-08
2
Medium Priority
?
1,031 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
Sinisa Vuk earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

604 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