Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox not working in my grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00866309
Message ID:
00866334
Vues:
15
Hi Neil
Try to make a grid class with the same properties as you need and also mention the control source etc in the grid class. Then create your cursor in init method of the form and add the class object soon after creating cursor. The code in form's init method will be like this.
SELECT modacad.key3, modacad.key4, modacad.moc011, modacad.mochk009 ;
FROM "U:\data\MODACAD.dbf" ;
WHERE modacad.key4<>'TECHNICAL' ;
ORDER BY key3 ;
INTO CURSOR result READWRITE 
WITH This
      .AddObject('grid1','mygridclass') 
      .grid1.visible=.t.
      .grid1.refresh
endwith
This is not a good way but I have solved my problem by the same way. If you are going to regenerate/refresh cursor then you have to remove the grid object before creating cursor and add the grid object again soon after your cusor is ready.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform