ASP.NET create dynamic table contains rowspan property
<blockquote>
  <p>I want to create a dynamic table. Below you can see between starsign
  has to be dynamic. Plant name (dynamic)=DAP1,TUP1,GEP3,PSP2<br>
  Config name (dynamic)= KSROC, 100ROC          Key figure name
  (dynamic) = Max Capacity, Free Capacity, Loading Level and of course i
  want to have it with rowspan mentioned below code. Thanks for the help
  i am just stuck</p>
</blockquote>

<pre><code>&lt;table class="table1"&gt;
         &lt;thead&gt;
             &lt;tr&gt;
                     &lt;th&gt;Config&lt;/th&gt;
                     &lt;th&gt;Key Figure&lt;/th&gt;
                     &lt;th&gt;*DAP1*&lt;/th&gt;
                     &lt;th&gt;*TUP1*&lt;/th&gt;
                     &lt;th&gt;*GEP3*&lt;/th&gt;
                     &lt;th&gt;*PSP2*&lt;/th&gt;
             &lt;/tr&gt;
         &lt;/thead&gt;        
             &lt;tr&gt;                     
                     &lt;th rowspan="4"&gt;*KSROC*&lt;/th&gt;                    
                     &lt;tr&gt;
                        &lt;th&gt;*Max Capacity*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;                   
                     &lt;/tr&gt;
                     &lt;tr&gt;
                        &lt;th&gt;*Free Capacity*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;  
                     &lt;/tr&gt;
                     &lt;tr&gt;
                        &lt;th&gt;*Loading Level*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;  
                     &lt;/tr&gt;
             &lt;/tr&gt;             

                     &lt;th rowspan="4" &gt;*100ROC*&lt;/th&gt;
                     &lt;tr&gt;
                        &lt;th&gt;*Max Capacity*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;                   
                     &lt;/tr&gt;
                     &lt;tr&gt;
                        &lt;th&gt;*Free Capacity*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;  
                     &lt;/tr&gt;
                     &lt;tr&gt;
                        &lt;th&gt;*Loading Level*&lt;/th&gt;
                        &lt;td&gt;*will be populated according to DAP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to TUP1*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to GEP3*&lt;/td&gt;
                        &lt;td&gt;*will be populated according to PSP2*&lt;/td&gt;  
                     &lt;/tr&gt;
             &lt;/tr&gt;

     &lt;/table&gt;
</code></pre>
