>Thanks for the answers about grid header colouring.
>Now, I want code to execute in the header.click event.
>
>I build the grid in code, and the underlying results can change. If they change, any code that I added in the clikc event of the header goes way. I need to trap the click and execute some code if user selects it.
>
>How do I add code to the grid header after it is created?
>Mike
Michael,
Check my new download for grdSorting - it covers this.
http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/grid-class-that-allows-sorting-by-clickiit also gives a link to an alternative class by Paul Mrozowski.
If it's not broken, fix it until it is.
My Blog