Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yahya Abou dalal
  Where is Yahya Abou dalal?
 tripoli
 Lebanon
 Yahya Abou dalal
 To: iqbal Kardamay
  Where is iqbal Kardamay?
 london
 United Kingdom
 iqbal Kardamay
 Tags
Subject: RE: GRID CONTROL
Thread ID: 373476 Message ID: 373486 # Views: 46 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Friday, March 22, 2013 1:24:28 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

Hi
In the click of the header you put the following:

grid1.column1.header.click

msource=this.Parent.ControlSource
index on &msource TO tmp
SET ORDER TO tmp


yahia

ENTIRE THREAD

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