title: How to use Rowspan in Gridview for 1st Column only
body: <p>Need help to resolve a issue related with Gridview layout. I am trying to implement custome Gridview with Itemtemplate Columns using C#.Net language and want to include view using RowSpan property.</p>
  
  <p><img src="https://i.stack.imgur.com/WOOcv.jpg" alt="As Below"></p>
  
  <p>I tried to use below code but didn't work for me <a href="http://csharpdotnetfreak.blogspot.com/2009/07/merge-gridview-cells-columns-aspnet.html" rel="noreferrer">Here</a></p>
  
  <p>Please check the code which i used:</p>
  
  <pre><code> protected void GridView31_DataBound1(object sender, EventArgs e)
  {
      for (int rowIndex = grdView31.Rows.Count - 2; rowIndex &gt;= 0; rowIndex--)
      {
          GridViewRow gvRow = grdView31.Rows[rowIndex];
          GridViewRow gvPreviousRow = grdView31.Rows[rowIndex + 1];
          for (int cellCount = 0; cellCount &lt; gvRow.Cells.Count; cellCount++)
          {
              if (gvRow.Cells[cellCount].Text == gvPreviousRow.Cells[cellCount].Text)
              {
                  if (gvPreviousRow.Cells[cellCount].RowSpan &lt; 2)
                  {
                      gvRow.Cells[cellCount].RowSpan = 2;
                  }
                  else
                  {
                      gvRow.Cells[cellCount].RowSpan =
                          gvPreviousRow.Cells[cellCount].RowSpan + 1;
                  }
                  gvPreviousRow.Cells[cellCount].Visible = false;
              }
          }
      }
  
  }
  </code></pre>
  
  <p>But every time the <code>gvRow.Cells[cellCount].Text == gvPreviousRow.Cells[cellCount].Text</code> is blank.</p>
  
  <p>Hence the grid is taking weird shapes. Don't know what is happening here.</p>
  
  <p>Can anyone help?</p>