I have a grid where one of the columns has a checkbox in it. I can make the checkbox appear in every row but I can not make it switch states. I have no clue where to start. Anybody have any ideas
Thanks for such a quick response. I set the checkbox up in the init code. The field in the table is type int. The state of the checkbox after the init event fires is readonly=.F., enabled=.T. I also made sure the column is enabled.
WITH THIS
.VISIBLE = .F.
[COLOR=/]
.ADDOBJECT('CheckBox1','CheckBox')
.CURRENTCONTROL = 'CheckBox1'
.REMOVEOBJECT('Text1')
.SPARSE = .f.
.VISIBLE = .T.
[COLOR=/]
ENDWIT
WITH THIS.checkbox1
.CAPTION = "MyCaption"
** ETC ETC OTHER PROPERTIES
ENDWITH
PLEASE NOTE IN LAST POSTING THE VISIBLE PROPERTY SETTING WAS LEFT OUT AND THAT WAS THE REASON FOR YOUR PROBLEM. WHENEVER AN ADDOBJECT() IS DONE, THE VISIBLE PROPERTY IS TURNED OFF AUTOMATICALLY. I HAVE DONE THAT EXPLICITLY ABOVE. BUT IT IT NEVER SET BACK UNLESS WE DO SO.
[COLOR=/]
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.