Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2006, 11:41 PM
rsal rsal is offline
Member
 
Join Date: Feb 2004
Posts: 45
Default Radio Button in a DBGrid

Hi,

I am using a table of which one of the fields is of type Boolean and I want to use a checkbox to manipulate the value of this field in a DBGrid.

Can anybody explain to me how to get a checkbox inside a dbgrid please

Regards


You can e-mail me directly at:

alouw@nwpg.gov.za

Thanks
Reply With Quote
  #2  
Old 02-22-2006, 02:09 AM
abhimanyuthegreatest abhimanyuthegreatest is offline
Senior Member
 
Join Date: Jul 2002
Posts: 104
Default RE: Radio Button in a DBGrid

hi,
you have to create a regular dbgrid and then drop a regular checkbox nothing specific it is in the code that we make the changes in case you need the reference please check this out
http://delphi.about.com/od/usedbvcl/l/aa082003a.htm


regards,
abhimanyu
Reply With Quote
  #3  
Old 02-22-2006, 02:12 AM
atulparmar atulparmar is offline
Senior Member
 
Join Date: Aug 2004
Posts: 305
Default RE: Radio Button in a DBGrid

Hi

check this

http://delphi.about.com/od/usedbvcl/l/aa082003a.htm

Accept As Answer if it helps

Atul
Reply With Quote
  #4  
Old 03-01-2006, 06:46 AM
jgiannelli jgiannelli is offline
Junior Member
 
Join Date: Feb 2006
Posts: 23
Default RE: Radio Button in a DBGrid

Double click on the Grid and get the "Select Fields" dialog box.

Select the boolean field from the "Selected Fields" list that you want the Checkbox on

Click the "Edit Control" tab on the right and set the "Control Type" to "CheckBox"

The set the "Values when checked" to "True" and the "Values when unchecked" to "False"

Hope this helps
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.