1. Leave the Text1 controls as it is in the Grid. If needed recreate the Grid .. 'coz that way you are sure nothing is hidden anywhere by mistake.
2. Put the name for columns in all as normal build up of grid.
3. In the init event of the said columnNumber.... put the code to initialize the control....
WITH THIS
.REMOVEOBJECT('Text1')
.ADDOBJECT('CheckBox','CheckBox')
.CURRENTCONTROL = 'CheckBox'
ENDWITH
Then put code if you need any other property to be set such as RightToLeft, Caption etc for the CheckBox.. you can reference it as
WITH THIS.CheckBox1
.Caption = "MyCaption"
ENDWITH
This ensures that nothing is hidden and everything is in front of you.
Note you set the sparse property of that column to .F.
Hope this solves your problem
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
When I created a table to see what happens, it did what it was supposed to. However when I tried to select one of the checkboxes displayed nothing happens. The grid is set to readonly.false
What could be the reason for not allowing me to change the state of the checkbox.
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.