Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBLClick in Grid
Message
From
30/10/1998 11:06:29
 
 
To
30/10/1998 11:00:21
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00145489
Message ID:
00152830
Views:
21
>>I have code in the DBLClick method of the textbox control in a grid. The data source of the grid is a cursor created by a paramaterized SQL Passthrough statement. The DBLClick method works until I re-issue the SQL Passthrough to get a different set of records in the cursor. What do I have to do to keep the DBLClick method working in this column?
>
>I have exactly the same problem in the same situation. Unfortunately i still don't have the solution. For some reason it doesn't count for all my grids.
>I did however find out that a grid containing a textbox directly based on the baseclass the dblClick event of the textbox fires but when i based the textbox on a subclassed textbox it doesn't fire.
>
>Do you already have the solution?
>
>Marco.

This is common grid warning: if you override grid.recordsource you risk to lose all specifics (customized column.controlsources, column.columnorders, column.widths, column.currentcontrols etc.). So there are two solutions here:
1. You restore all specifics programmatically after each cursor overriding (in your case it's column.currentcontrol property, i guess).
OR (preferable for smaller recordsets)
2. You never override grid.recordsource. Instead you base it once on stable read-write cursor. Any time you get new recordset (another read-only cursor) you just append records from read-only to read-write cursor.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform