Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Cetin Basoz
 To: iqbal Kardamay
  Where is iqbal Kardamay?
 United Kingdom
 iqbal Kardamay
Thread ID: 373476 Message ID: 373485 # Views: 58 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Friday, March 22, 2013 1:24:18 PM         

> Hello Gurus,
> very simple for you people but honestly i am struggling.
> i've got one grid where i am displaying a table. what I want is when i click on header/column i want that column number or say field number display in text box. so later i can do index on that particular field. Hope i've explained in a right manner. I did try to search in an archive but didn't get it what i am looking for.
> Thanks in advance.
> No boundries for learning..Im still young

You can write your code in Header.Click event.

For an implementation download and check FoxyClasses' LocatorGrid or MultiSelectGrid class of Grids.vcx. You can download it from:


Probably LocatorGrid (or MultiSelectGrid) is already doing what you want to do out of the box. Check its samples and also maybe watch these simple quick videos:

Locatorgrid simple features
LocatorGrid _ Editable fields sample

Cetin Basoz

.Net has got better.Think about moving - check my blog:
My Blog

MongoDb Certified Developer
MongoDb Certified DBA

Support Wikipedia


GRID CONTROL Posted by iqbal Kardamay @ 3/22/2013 11:52:10 AM
RE: GRID CONTROL Posted by Cetin Basoz @ 3/22/2013 1:24:18 PM
RE: GRID CONTROL Posted by Yahia Aboudalal @ 3/22/2013 1:24:28 PM
RE: GRID CONTROL Posted by Rahul Moudgill @ 3/22/2013 1:51:40 PM