Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control
Message
De
12/07/2002 03:53:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00677782
Message ID:
00677884
Vues:
17
>Hi,
>
>I have a program to assign user rights.
>On the load event I create a cursor csrA.
> create cursor CsrA(screenname C(30), allowed I)
>
>ScreenName takes values like 'MainForm', 'DirectoryForm'
>Allowed is either 1 or 0
>
>When a user is selected from the combobox on the from this cursor will be filled with the values for this user.
>
>I am trying to display the cursor values in grid.
>My grid had 2 columns. The current control for column1 is a textbox and that for column2 is a checkbox.
>
>How do I assign values to the grid?
>
>Do I code this or do I set the properties of the grid?
>
>I tried this code:
>
>thisform.grid1.recordsource = csrA
>
>But this just displays the values and my text & check boxes disappear.
>I would like the screen name to be displayed in the textbox and the values for allowed to determine if the checkbox will be checked or not.
>
>Any help would be really appreciated.
>
>Ria

Ria,
Set columns' sparse to .f.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform