Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling row order in a Grid
Message
From
02/07/1998 15:28:57
 
 
To
02/07/1998 15:06:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00113876
Message ID:
00113886
Views:
25
>I have a Grid in a form that allows users to add rows. To add a new row, my code fires an append blank. Unfortunately, all new records appear at the bottom of the grid and not index order. Is there a way to reorder the Grid on the fly?

Hi Andy,

Provided the recordsource of the grid that you are appending a record to is ordered, after the append and update of the data, try refreshing the grid by calling its Refresh() method. I think might order the records properly. The problem might lie in the APPEND. I'd look at using INSERT-SQL, as it will definately insert the record into the correct order placement.

Phil
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Reply
Map
View

Click here to load this message in the networking platform