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. Image for the cookie policy date
close icon

Icon in Grid Row

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?

1 Reply

HA haneefm Syncfusion Team May 15, 2007 03:40 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon