Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
Adding a button to a Column Header
posted

I have a  Windows Form application with a basic grid of data.  I have enabled row filtering via the header icon.

My user has asked if I can add a button to the top of each column which allows them to copy the contents of the cell in the first row of that column to all the other cells in that column, and I'm trying to figure out the best way to accomplish this.

Can I add a custom button to a column header and create an event handler for it?

Or can I override the event hanlder for one of the other existing column header buttons?

Or can I freeze the first row so that it is unaffected by scrolling/filtering and add buttons to the cells in this row?

I guess the real question is "What is the best way to accomplish what I'm trying to do?"

Thanks so much!

Steve