Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid Control
Miscellaneous
Thread ID:
00677782
Message ID:
00677782
Views:
51
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
Next
Reply
Map
View

Click here to load this message in the networking platform