We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Place a clickable Icon on the Grid Header

Thread ID:





4654 May 22,2003 03:03 PM May 22,2003 03:26 PM Windows Forms 1
Tags: GridControl
Aaron Ching
Asked On May 22, 2003 03:03 PM

Hi, Is it possible to put a clickable icon on the grid header so that I can click on the icon and get a different context menu for each column? Thanks for your help. Aaron

Administrator [Syncfusion]
Replied On May 22, 2003 03:26 PM

There are several ways you can do this. If you want a bitmap button, you can use the technique illustrated in the Syncfusion\Essential Suite\Grid\Samples\in Depth\CellButtons sample. There is an Ellipsis button there that is a bitmap button. You could put this in a column header. You could also make the header cell a Static CellType, and add an ImageList and ImageIndex to the cell style. This shoul ddiplay an icon. To catch the click, you could handle the CellClick event and check if the click is on your column header. You could also just catch CellClick and test for e.RowIndex = 0 to get a header click. Then you could just display a context menu based on the e.ColIndex value. (This would be wothout using an icon.)


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.