title: Get row height of gridview
body: <p>Im doing c# asp.net in web form, I would like to get the row height of grid view but cant, I always show 0 when I tried to get it. I using the code from other post inside Stack Overflow.</p>
  
  <p>c#</p>
  
  <pre><code>foreach (GridViewRow row in gv.Rows)
  {
     height = Convert.ToDecimal(row.Height.Value) + height;
  }
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;wc:ReportGridView ID="gv" runat="server" AutoGenerateColumns="false" AllowPrintPaging="true"
   CellPadding="4" ForeColor="Black" OnRowDataBound="gv_RowDataBound" ShowFooter="True"
  tyle="font-family: 'Century Gothic'; font-size: small; z-index: -1; color: #000000;
   margin-top: 0px;" BorderColor="Black" BorderStyle="Solid" BorderWidth="3px"&gt;
  </code></pre>
  
  <p>I see all comment said they can work but why I can't? or got other solution to get the row height no matter is c# or JavaScript.</p>