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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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:
3748 02/06/2015 02/06/2015 WinForms GridDataBoundGrid(Classic)
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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