Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Class with a grid
Message
From
20/12/2001 10:23:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00596755
Message ID:
00596767
Views:
18
>Happy Holidays Everyone!!!
>I have a class that is made up of a form with a grid in it.
>the grid has 1 column. When I instatiate the object, I put
>the right number of columns in the grid. The search works fine, but
>what I am tring to do is to on the fly handle the sort. For example,
>Lets say I send 6 Parameters to the class, it will put six columns in the grid.
>But what I want to do is also place thisline of code in to the click event of each header while I am Creating the form on the fly:
>
THISFORM.r_DoTheSort(SomeIndexVariable)
>So I guess the million dollar question is:
>Is it Possible to Add code to the Click event of the header while trying to create it on the fly IF the form I am referencing is classed?
>If it is possible, How can I do this?
>
>Thanks in advance

Leroy,
You could 'replace' the headers with your header class. Check 'Two grid classes' from downloads section. MultiSelectGrid does that.
Tip:If your code is not known before and you use VFP6 or later you could create the prg on the fly and compile :)
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