The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team 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
IJIain JollySeptember 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
ADAdministrator Syncfusion Team 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