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.
Syncfusion Feedback

How to Add image column for gridgrouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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.


Administrator [Syncfusion]
Replied On 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



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.

Warning Icon 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.Close Icon

;