I am working on a Crystal Report and facing an issue. I cannot make
every cell in the categories have multiple activities vertically , so each category
needs to have multiple activities with row spans.
csharp code
public bool GET_REGISTER_DATA_Report(string P_REQ_ID)
{
MyDatabase db = new MyDatabase();
RptGET_REGISTER_DATA_Report cr = new RptGET_REGISTER_DATA_Report();
var ds = db.GET_REGISTER_DATA_Report(P_REQ_ID);
var P_REGISTER_ACTS = ds.Tables["P_REGISTER_ACTS"];
cr.Database.Tables["P_REGISTER_ACTS"].SetDataSource(P_REGISTER_ACTS);
CrystalReportViewer1.ReportSource = cr;
cr.PrintOptions.NoPrinter = false;
return true;
}
desired design I need

Chintan GandhiPosted Apr 15, 2025, 6:37 AM
Since Crystal Reports doesn't natively support rowspan like HTML, we'll have to use a visual workaround.
Let’s say you have multiple rows with the same value for a field, and you want that value to appear once, like it’s merged vertically across those rows.
Option 1: Suppress if Duplicated (Best for Static Height Rows)
This is the most common and simplest way:
Right-click on the field in the Detail section.
Select Format Field.
Under the Common tab, check Suppress If Duplicated.
(Optional) Align fields and draw borders to make them look merged.
This works best when your data is sorted or grouped, so duplicates are in order.
Option 2: Use Grouping Instead of Repeating in Details
If your field logically groups several rows together (e.g. same Order ID, same Category):
Go to Insert → Group and choose the field.
Move the "merged" field into the Group Header.
Keep your other fields in the Detail section.
This way, the field shows once above all related rows.
ahmed elbarbaryPosted Feb 11, 2025, 11:34 AM
MY Question how to make crystal report BOVE
I face issue on merge cell and make row span
Sangeetha SPosted Feb 11, 2025, 8:26 AM
C# code seems to be setting the data source correctly. Make sure your dataset (
P_REGISTER_ACTS) is structured properly, with categories and their corresponding activities.Here's a simplified version of your C# code for clarity: