Hi, Kevin.
>I want to build a grid in VFP7 on the fly by using ADDCOLUMN. The columns aren't known until runtime. When each column is created, I want the click event of the column header to call a function [which sorts the grid on that column's controlsource]. Problem is, I don't know how to create a class for a grid column or grid heading.
You can do this in VFP 8.0. Read this article from Les Pinter:
http://www.utmag.com/August2003/Page29.aspHope this helps,