>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only