Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Tag Index for Grid data
Message
From
28/08/1999 18:16:57
 
 
To
28/08/1999 14:31:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00258841
Message ID:
00258873
Views:
11
>I need to sort data in ascending order in the Grid.
>I have created a key index(CDX) for the table to
>associate to the Grid.
>The problem is that I am still unable to view the data
>in ascending order after setting the index order
>eg. open database (databasename)
> select (tablename)
> set index to (tagname)
>
>Pls advise, thanks.

Have you verified that the index is what oyu think it is by setting order and browsing the table?

How are you assigning the grid's recordsource? In the property sheet, or in code? Is the table open in the form's DataEnvironment?

The following simple steps should make a table viewable in a grid in a specified order.

Create a form, and drop a grid on it.
Add the table in question to the Data Environment.
SEt the Cursor's Order property to the name of the index you created
Set the grid's redordsource property to the name of the cursor.
Run the form.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform