Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mihir Shah
  Where is Mihir Shah?
 Mumbai
 India
 Mihir Shah
 To: kaustubh jambotkar
  Where is kaustubh jambotkar?
 Bicholim
 India
 kaustubh jambotkar
 Tags
Subject: RE: Check box in Readwrite cursor grid
Thread ID: 365787 Message ID: 365795 # Views: 44 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Monday, December 31, 2012 2:06:20 PM         
   


> Hi
> i have got one form, where in i want to give the user the option of multiselect, with the following code which i got from seaching,i get the grid with a check box, however i cant change the values of check box.
>
> i need help on this.
>
> use in select( "newbin" )
> select ;
> .f. as IsChosen, ;
> E.* ;
> from ;
> binlot E;
> into ;
> cursor newbin READWRITE
> Thisform.grid1.RecordSource =""
> Thisform.grid1.RecordSource = "newbin"
> WITH thisform.grid1.column1
> .AddObject("Check1","checkbox")
> .sparse=.f.
> .CurrentControl = "Check1"
> ENDWITH
>
> thisform.grid1.refresh
> regards


Its Simple...

Just add one line below sparse

.Check1.visible = .t.

Do not think that since its already appearing visible there is no need to make it true.
The above line is required for addnew object within the column.

Bye.

ENTIRE THREAD

Check box in Readwrite cursor grid Posted by kaustubh jambotkar @ 12/31/2012 1:28:47 PM
RE: Check box in Readwrite cursor grid Posted by Cetin Basoz @ 12/31/2012 1:41:30 PM
RE: Check box in Readwrite cursor grid Posted by Mihir Shah @ 12/31/2012 2:06:20 PM