You can do it much easier using AEVENTS() in your handler. * your_handler code LOCAL ax[1] AEVENTS(ax,0) && ax is an array that contains the object, the event, and how it was raised MESSAGEBOX(ax[1].Parent.Name) && show the column name of the one that was clicked.
This assumes you did your BINDEVENT to the grid column headers: * Form Init LOCAL x FOR m.x=1 TO thisform.grid1.ColumnCount BINDEVENT(thisform.grid1.Columns(m.x).Header1,"Click",thisform,"your_handler") ENDFOR Fred On Tue, Nov 30, 2010 at 10:25 AM, Michael Savage <[email protected]> wrote: > I have a view, that when the form loads, I have set the nodataonload to > be true. > I then in the load event create the necessary indexes for the column of > the view. (Different columns are shown based on the user...) > I build my grid dynamically based on the view results, so when I set the > use the bindevent in the header of each column. > > Now I need to know what column was picked... So I thought a combo of > program, sys(16) and astackinfo would give me the calling routine. But I > can't seem to get ti to work. > > I don't a way to use the bind event to pass a parameter based on the > column picked in the click event. (I don't see a way to pass a parameter > to the bindevent at all!) > > Am I doing things the hard way? I just want to know which column header > was clicked. > > Any ideas? > Mike > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

