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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Place a clickable Icon on the Grid Header

Thread ID:





4654 May 22,2003 07:03 PM UTC May 22,2003 07:26 PM UTC WinForms 1
Tags: GridControl
Aaron Ching
Asked On May 22, 2003 07:03 PM UTC

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 07:26 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon