Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
From
09/07/1999 10:35:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/07/1999 10:25:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Grids
Miscellaneous
Thread ID:
00239393
Message ID:
00239426
Views:
12
>Thanks Cetin, I've got one more question, hopefully there's a quick solution:)
>I currently have a grid in which I have non-visually created in the grid init. Setting properties is not a problem. However, I'm trying to program the headers .click events with the following code:
>
>******
>private chrParams
>
>chrParams = "chrHeader=[" + upper( alltrim( this.caption ) ) + "]"
>thisform.m_Change_Order( chrParams ) &&changes order on the grid
>return
>******
>
>Is there an easy way to accomplish this?
Hmm. Using a form method is not good for a grid (as you want to use that on ahother form then that form should have that method too). Better it could be proc of grid itself. Anyway, for changing headers, removeobject("Header1"), addobject("Header1","myHeader"). The above code is myHeader.click code, true ?
Check multiselect grid class. It does very similar (click to change order and show active column with a yellow background as I remember). It should also have a few test.prg to show effects.
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