Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBoxes in grid fields - Changing States 2

Status
Not open for further replies.

jimsterS

Programmer
Apr 24, 2001
71
US
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
 
Hello

a) Check if it's bound to a logical or numerical datatype field.
b) Check if the column or the checkbox is enabled and not read-only


Hope this helps.
Grigore Dolghin
Class Software
Bucharest, Romania
 
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.

I am not sure what to do next.
Jim Shepard
 
Hi Jim,

Sorry for the delay. I had my preoccupations.

In the init event of the grids specific column..

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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top