Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Grid column with checkbox issue
Message
From
03/05/2004 21:55:58
 
 
To
03/05/2004 21:46:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900575
Message ID:
00900577
Views:
23
>Hi,
>
>I having problem with my VFP8 grid.
>My grid is for viewing some open table with some logical field
>It had 02 columns with checkbox.
>
>Depending on other field in the open table,
>I might need to change the checkbox caption display
>on the grid.
>
>However, when I change one of the checkbox caption,
>it affect the other too. Below is my code
>
>* change row 1 of the column 3 checkbox caption
>thisform.grid1.ActivateCell(1,3)
>thisform.grid1.column3.check1.Caption = "Row 1"
>
>Above code will change all my column 3 checkbox caption
>to 'Row 1'
This is by design. it is a column operation.
>In addition, if one of my checkbox is checked, the
>other column checkbox should be uncheck, but my code
>below also not working. Any ideal ?
I have an idea, forming in my head. Look at the interactive change method.
>Column3 check click method
>==========================
>
>IF this.Value = .T.
> thisform.grid1.column2.check1.Value = .F.
fire interactive change method here
>endif
>
>Column2 check click method
>==========================
>
>IF this.Value = .T.
> thisform.grid1.column3.check1.Value = .F.
again, an entire COLUMN operation
>endif
>
>Any help or comment is very much appreciated. Thank you
Previous
Reply
Map
View

Click here to load this message in the networking platform