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.

GridDataboundGrid - Merge duplicate cells

Thread ID:

Created:

Updated:

Platform:

Replies:

35077 Sep 22,2005 07:15 AM Sep 23,2005 08:53 AM Windows Forms 3
loading
Tags: GridControl
Iain Jolly
Asked On September 22, 2005 07:15 AM

Hi, I have duplicate row values within a column of my databound grid. How do I merge these cells. Thanks Iain

Administrator [Syncfusion]
Replied On September 22, 2005 08:52 AM

Hi Iain, Please refer this sample that merges duplicate cells in a GridDataBoundGrid. MergeCells_GDBG.zip Best regards, Jay N

Iain Jolly
Replied On September 22, 2005 09:59 AM

Hi, thanks - this worked well. Is there any way that I can set the merged rows to a different color? Thanks Iain

Administrator [Syncfusion]
Replied On September 23, 2005 08:53 AM

Hi Iain, You can set the backcolor in PrepareViewStyleInfo. private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex == 2) { if(e.RowIndex == 6) e.Style.BackColor = Color.Pink; else if(e.RowIndex == 11) e.Style.BackColor = Color.LightGreen; } } Best regards, Jay N

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.

;