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.

row header''s icon on griddataboundgrid

Thread ID:





32052 Jul 20,2005 07:58 PM Jul 20,2005 08:28 PM Windows Forms 1
Tags: GridControl
Asked On July 20, 2005 07:58 PM

Hi there, How do I change the row header''s icon displayed on the griddataboundgrid ? thx, adit

Administrator [Syncfusion]
Replied On July 20, 2005 08:28 PM

Here is one way you can do this. http://www.syncfusion.com/support/user/uploads/7954.zip. It changes the row header cell style to "Header" to avoid seeing the default pencil and triangle, and then uses PrepareViewStyleInfo to show an icon using style.ImageList to provide a BackgroundImage for the header cells. The sample gets the image index from a column in the datatable being displayed. Another way you can do this is to handle the CellDrawn event and draw the bitmap over the cell at that point when e.ColIndex == 0 and e.RowIndex > 0.


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.