Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Click Event wont work on grid
Message
From
24/05/2001 04:45:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/05/2001 17:04:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510474
Message ID:
00510741
Views:
11
>In the init method of my form i do the following
>
>=.addobject('ogrid1','gridorders')
>=.ogrid1.grid1.refresh() &&in the refresh() method I set recordsourcetype
> and header names etc
>thisform.ogrid1.visible = .t.
>
>Ronnie

Recordsource setting in refresh ? I would suggest to move it somewhere else like a custom SetRecordSource method.
Second if you need to set header names there :
-Does grid has no columns initially ?
-Or it has and you're changing them is original RecordSource is there ? If not grid would automatically redo its column objects binding to current alias destroying your added custom textboxes. Better you do add your custom textboxes on the fly.

Check Message #487530 for some sample code changing grid on the fly with your custom header, textbox, column code.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform