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.

Icon in Grid Row

Thread ID:

Created:

Updated:

Platform:

Replies:

60923 May 15,2007 10:33 AM May 15,2007 11:40 AM Windows Forms 1
loading
Tags: GridControl
Christoph Gasser
Asked On May 15, 2007 10:33 AM

I've set up an GridGroupingControl control with databinding and it works fine. No I want to have an Icon in front of each data row (instead of the RowHeader which I've deactivated). Each row the same icon.

Does anyone know how to do that?

haneefm [Syncfusion]
Replied On May 15, 2007 11:40 AM

Hi Christoph,

You can try the below code snippet to set a icon in a RowHeadercell.

this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.CellType = "Static";
this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.Themed = false;
this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.ImageIndex = 0;

ImageList list = new ImageList();
list.Images.Add(SystemIcons.Question.ToBitmap());
this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.ImageList = list;

Best regards,
Haneef

CONFIRMATION

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.

;