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 Add image column for gridgrouping control

Thread ID:





73064 Apr 18,2008 02:13 AM Apr 25,2008 06:40 AM Windows Forms 1
Tags: GridControl
venkataramu c
Asked On April 18, 2008 02:13 AM

How to Add image column in GridGrouping control and How set particular FullRow color is Red in GridGrouping Control

Thanks in Advance

Administrator [Syncfusion]
Replied On April 25, 2008 06:40 AM

Hi Venkat,

Add image column in GridGrouping control.

This can be achieved by setting the celltype of the gridcell to "Image". Below is a code that shows this task.

this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyCell.CellType = GridCellTypeName.Image;

How set particular FullRow color is Red in GridGrouping Control.

This can be achieved by handling the TableControlPrepareViewStyleInfo event. Please refer the code:

this.gridGroupingControl1.TableControlPrepareViewStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventHandler(gridGroupingControl1_TableControlPrepareViewStyleInfo);

void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPrepareViewStyleInfoEventArgs e)

if (e.Inner.RowIndex == 6)
e.Inner.Style.BackColor = Color.Red;

Please refer the sample:

Please try this and let me know if this helps.



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.