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

How to Add image column for gridgrouping control

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

Thanks in Advance
regards
Venkat.


1 Reply

AD Administrator Syncfusion Team April 25, 2008 10:40 AM UTC

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:
http://www.syncfusion.com/support/user/uploads/GGCImageColumn_57eaf022.zip


Please try this and let me know if this helps.

Regards,
Jisha



Loader.
Live Chat Icon For mobile
Up arrow icon