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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataboundGrid - Merge duplicate cells

Thread ID:





35077 Sep 22,2005 11:15 AM UTC Sep 23,2005 12:53 PM UTC WinForms 3
Tags: GridControl
Iain Jolly
Asked On September 22, 2005 11:15 AM UTC

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 12:52 PM UTC

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 01:59 PM UTC

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 12:53 PM UTC

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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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