Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

330
Views
How to merge table cells of same values in bootstrap table?

I need to merge the cells of the year which are same into a single under which the months are arranged based on the corresponding year. I tried with getting the count of year and using it as colspan value but it didn't work

<thead>
  <tr>
    <th *ngFor="let colItem of YearGrid">{{colItem.Year}}</th>
  </tr>
  <tr>
    <th *ngFor="let colItem of YearGrid">{{colItem.Month}}</th>
  </tr>
</thead>
YearGrid = [
  {Month: 'Nov', Year: 2020},
  {Month: 'Dec', Year: 2020},
  {Month: 'Jan', Year: 2021},
  {Month: 'Feb', Year: 2021},
  {Month: 'Mar', Year: 2021}
];
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

so please colspan or rowspan

table{
width: 400px
}

table td,table th{
border: 1px solid red;
}
<table>
  <tr>
    <th colspan="2">Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>43</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>57</td>
  </tr>
</table>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!