Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - CursorAdapter
Message
From
01/12/2005 22:56:00
 
 
To
30/11/2005 10:11:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01073232
Message ID:
01074036
Views:
28
Sarosh,

>In the grdCustomer's AfterRowColChange Event I have tried calling the cursoradapter's CursorRefresh() and CursorFill() -ThisForm.DataEnvironment.cadOrders.CursorRefresh()/CursorFill() methods and the grid looses all its column settings because a new underlying cursor gets created each time I call CursorRefresh() or CursorFill().

You should call only CursorRefresh(), which will not destroy and re-create the cursor and should keep all your settings for the grid columns. If you call CursorFill(), you will create a new cursor for sure. CursorRefresh just repeats the last CUrsorFill() selectcmd, but without tearing down the cursor.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform