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 load a image for a column in GridGroupingControl?

To load an image for a column in grid grouping control, the following ways can be used,

                        1. QueryCellStyleInfo event.

                        2. Using Appearance property.

Using QueryCellStyleInfo event

In this method, the cell type of a column is changed to image cell and image can be loaded by adding an image to a list and assigned that list to ImageList Property. Particular image can be set by setting the Index of an image using ImageIndex Property.

Code Snippet

C#

 

VB

Using Appearance property

An image can be loaded for a column by setting Appearance.AnyRecordFieldCell.CellType to image cell for specific columns.

Code Snippet

C#

 

VB

 

C:\Users\piruthiviraj.malaime\Desktop\img1.PNG

Sample Links

C#: Loading an image_CS

VB: Loading an image_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6279 02/15/2016 03/21/2016 Windows Forms GridGroupingControl
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.