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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: check box and grid ?

Status
Not open for further replies.

pxw

Programmer
Jan 6, 2002
86
AU
I added a check box, named CHECK1, into COLUMN1 of a grid manualy. I can see the check box in design time. However, I can't see it in run time. When I placed the code into the init() of the grid,
thisform.grid.column1.check1.visible=.t.
I got an error message "unknown member CHECK1". I don't know why. What I want is to use a check box in a grid to present the value of a logical type field of a table. This table is greated by using SELECT-SQL statement in run time.

Any help would be appreciated.



Peter






 
you need to set the columun property CurrentControl to check1.

the Sparse property of the Columun will allow the CurrentControl to be showen at all times. if false the CurrentControl is only seen when the cursor is in grid row.

the help file will explain this further. Attitude is Everything
 
Hi mgagnon and danceman,

Many thanks for your help. The problem I had was the column1.Sparse=true, even the columun1.CurrentControl was set to "check1". The check box works okay now once the column1.Sparse=False.


Peter


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top