>I would like to add extra columns to a grid control at run-time. However, my problem is that I would like to add code to the header.rightclick method for each new header. Is there a way to do this at run-time?
>
>Or even a more generic question would be... Is there a way to add code to a method at run-time?
>
>Thanks
Yopu always can create your own class for a Header. Check HeaderClass and HeaderClassLib properties of the Column. Othwer way is to use BINDEVENT to Bind RightClick event of the Header.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.