title: MudBlazor: How to create a custom table with MudTable using colspan and rowspan?
body: <p>I Would like to convert my previous html table below to MudTable. But I can't figure out how to actually do it using the MudBlazor library. In HTML, I used rowspan and colspan to achieve the table below. I'm new using Mudblazor library but I searched a lot to find a solution for this but I couldn't find. Hope someone can help me.</p>
  <p><strong>Target Table</strong></p>
  <p><a href="https://i.stack.imgur.com/Jy3us.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jy3us.png" alt="enter image description here" /></a></p>
  <p><strong>My attempt</strong></p>
  <pre><code>&lt;MudTable Items=&quot;@selectedDriver.Capability.cActions&quot;
        Class=&quot;mt-5&quot;
        Dense=&quot;@true&quot; Hover=&quot;@true&quot; Bordered=&quot;@true&quot; Striped=&quot;@true&quot; ReadOnly=&quot;@dronly&quot; CanCancelEdit=&quot;@true&quot;
        RowEditPreview=&quot;BackupActionItem&quot;
        RowEditCancel=&quot;ResetActionItemToOriginalValues&quot;
        RowEditCommit=&quot;ActionItemHasBeenCommitted&quot;
        CustomHeader=&quot;@true&quot;
        @ref=&quot;actionTable&quot;&gt;
  &lt;HeaderContent&gt;
      &lt;MudTHeadRow&gt;
          &lt;MudTh&gt;No.&lt;/MudTh&gt;
          &lt;MudTh&gt;Action&lt;/MudTh&gt;
          &lt;MudTh colspan=&quot;2&quot;&gt;Parameters&lt;/MudTh&gt;
          &lt;MudTh&gt;Return Type&lt;/MudTh&gt;
      &lt;/MudTHeadRow&gt;
  &lt;/HeaderContent&gt;
  
  &lt;RowTemplate&gt;
      @foreach (var item in context.Parameters.Select((value, i) =&gt; new { i, value }))
      {
          var index = item.i;
          var parameter = item.value;
          var paramCount = context.Parameters.Count();
  
          @if (index == 0)
          {
              &lt;MudTd rowspan=&quot;@(paramCount)&quot; scope=&quot;row&quot; DataLabel=&quot;No.&quot;&gt;*&lt;/MudTd&gt;
              &lt;MudTd rowspan=&quot;@(paramCount)&quot; scope=&quot;row&quot; DataLabel=&quot;Name&quot;&gt;@context.Name&lt;/MudTd&gt;
          }
  
          &lt;MudTd DataLabel=&quot;Parameter&quot;&gt;@parameter.Name&lt;/MudTd&gt;
          &lt;MudTd DataLabel=&quot;Type&quot;&gt;@parameter.Type.ToString()&lt;/MudTd&gt;
  
          @if (index == 0)
          {
              &lt;MudTd rowspan=&quot;@(paramCount)&quot; scope=&quot;row&quot; DataLabel=&quot;Name&quot;&gt;@context.ReturnType.ToString()&lt;/MudTd&gt;
          }
      }
  &lt;/RowTemplate&gt;
  </code></pre>
  
  <p><strong>Result</strong></p>
  <p><a href="https://i.stack.imgur.com/yEyCw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yEyCw.png" alt="enter image description here" /></a></p>