You're doing it the hard way if you want to roll your own. Check out Craig Boyd's gridextras stuff. Drop the object on your form, set a few properties and call the init method at the right time. Very cool stuff. Ascending/descending sorts on all columns, exports, filters, quick report, etc. Unfortunately, his site seems to be down at the moment. Let me know if you want me to email you the zip file with his code.
-- rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Savage Sent: Tuesday, November 30, 2010 12:25 PM To: [email protected] Subject: I'm not having a good day... How do I create a dynamic sort on a column 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 _______________________________________________ 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/df1eef11e586a64fb54a97f22a8bd044190dfb9...@ackbwddqh1.artfact.local ** 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.

