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.

How to replace the default RowHeader triangle icon with another icon?

Description

By default, GridDataBoundGrid displays a triangle in the row header cell of the currently selected row. Refer to the following screenshot.

Solution

You can achieve this by changing the row header BaseStyleMap to Header and handling the PrepareViewStyleInfo events. In PrepareViewStyleInfo, you can also change the e.Style.Text (for text) or the e.Style.BackgroundImage (for images).

Refer to the following code example for changing BaseStyleMap.

C#

 

VB

 

 

Refer to the following code example for changing text or image in PrepareViewStyleInfo.

C#

 

VB

The following screenshot displays the RowHeader replaced with another image and text.

Sample

http://www.syncfusion.com/downloads/support/directtrac/general/WF-14478_How_to_change_RowHeaderIcon-187232645.zip

 

Article ID: Published Date: Last Revised Date: Platform: Control:
436 04/30/2011 02/06/2015 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.