Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which Header1 of the grid I have clicked 1

Status
Not open for further replies.

benman

Programmer
May 3, 2006
35
HK
1) I have creatd a new Method of oHeaderClick in object Grid

2) In Grid.INIT, add-in:
FOR m.nCount = 1 TO this.ColumnCount
BINDEVENT(this.Columns(m.nCount).header1, "Click", this, "oHeaderClick")
NEXT

3) I have tested it with ??Chr(7) code inside oHeaderClick and works.

??? However, I don't know which Header1 (the column location) that it is clicked. ??? It is not necessary the ActiveColumn also.

Any suggestion ? or use the memberclass method again to distribute the Header1?
 

In oHeaderClick Method:
Code:
AEVENTS(laEvent,0)
WAIT WINDOW laEvent[1,1].parent.Name && You must get ColumnX

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top