Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Westminster Circle, Akron
 Ohio - United States
 Andy Kramek
 To: Nigel Henriques
  Where is Nigel Henriques?
 Guelph
 Canada
 Nigel Henriques
 Tags
Subject: RE: Grid with column-click to sort data ?
Thread ID: 68106 Message ID: 68114 # Views: 45 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Monday, May 16, 2005 8:29:17 PM         
   


> Hi All;
>
> I was wondering if anyone can give me a little guidance to develop a "grid" component for my application that would allow the user to "click" on the column header to initiate a sort of the data based on the column selected and also to allow the user to perform a "right-click" to display a drop down menu. I am looking to develop the functionality based on VFP 9 Grid class or locate a component that provides me with similar functionality. For those that are familiar with Delphi, I am looking for something similar to the functionality of DevExpress Quantum Grids.

Easiest way is to use BindEvent() to do this. Just create a method on your grid class (or even on the form) and bind the header click to it. Then just add whatever code you need...

For Right-Click menus you can do a similar thing, use BindEvent() to pass the event off to a custom handler.

Check it out in the Help and there's even a BindEvent sample showing Right Click in SOLUTION.APP that ships with VFP in the samples directory. Look in the "What's new in VFP 8.0" section (it was introduced in that version).

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA


COMPLETE THREAD

Grid with column-click to sort data ? Posted by Nigel Henriques @ 5/16/2005 7:32:25 PM
RE: Grid with column-click to sort data ? Posted by Andy Kramek @ 5/16/2005 8:29:17 PM
RE: Grid with column-click to sort data ? Posted by Marcia Akins @ 5/17/2005 1:07:32 AM
RE: Grid with column-click to sort data ? Posted by Bernard Bout @ 5/17/2005 5:59:09 AM
RE: Grid with column-click to sort data ? Posted by Anders Wennerwik @ 5/17/2005 6:16:34 PM