>Hi all ;
> The header click event is realy cool for placing codes to sort or color data in a grid, however, I frquently use a grid with columncount -1 because I use queries to gather the data and column count changes according to requests.
>Is there is a way to place code in the header clickevent programically.
>
>Thanks
You'd have to sub-class the header in a prg file, then iterate through the columns, use RemoveObject() to remove the header and then AddObject() to replace it with your class.
George
Ubi caritas et amor, deus ibi est