title: Gridview row width shrinking when a control is not visible
body: <p>I have the code below. I am trying to get the gridview row width to stay permanent and not shrink when a control invisible.  When a control is visible, the row looks fine, when it is invisible, the row combines with the next row in the gridview. Any ideas? </p>
  
  <pre><code>if (File.Exists(@"\\10.10.1.45\public\hdma\" + NDCNumber + ".pdf"))
  {
      e.Row.Cells[2].Visible = true;
      HDMALink.NavigateUrl = @"\\10.10.1.45\public\hdma\" + NDCNumber + ".pdf";
  }
  else
  {
      e.Row.Cells[2].Visible = false;
  }
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;Columns&gt;
      &lt;asp:HyperLinkField Target="_blank" DataNavigateUrlFields="NDCNumber" Text="D" HeaderStyle-HorizontalAlign ="Left" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="1%" ItemStyle-ForeColor="#284775" ItemStyle-BorderStyle="None" /&gt;
      &lt;asp:HyperLinkField Target="_blank" DataNavigateUrlFields="NDCNumber" HeaderText="Print" HeaderStyle-HorizontalAlign="Left" Text="S" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="6%" ItemStyle-BorderStyle="None" /&gt;
      &lt;asp:HyperLinkField Target="_blank" HeaderText="HDMA" Text="H" ItemStyle-Width="1%" ItemStyle-HorizontalAlign="Center" ItemStyle-ForeColor="#284775" /&gt;
      &lt;asp:BoundField DataField="NDCNumber" HeaderText="NDC Number" HeaderStyle-HorizontalAlign ="Center" ItemStyle-Width="12%" ItemStyle-HorizontalAlign="Center" /&gt; 
      &lt;asp:HyperLinkField DataTextField="ProductName" HeaderText="Product Name" HeaderStyle-HorizontalAlign ="Center"  ItemStyle-Width="35%" ItemStyle-BorderStyle="None"  /&gt;                        
      &lt;asp:BoundField DataField="Strength" HeaderStyle-HorizontalAlign="Center" HeaderText="Strength" ItemStyle-Width="20%" ItemStyle-BorderStyle="None" /&gt;
      &lt;pac:BoundButtonField CommandName="Edit" HeaderText="" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" NavigateUrl="~/general.aspx" ItemStyle-Width="5%" ItemStyle-BorderStyle="None" /&gt;
      &lt;pac:BoundButtonField  CommandName="Delete" HeaderText="Delete" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"  ConfirmMsg = "Are you sure you wish to delete this product?" ItemStyle-BorderStyle="None" /&gt;        
  </code></pre>
  
  <p></p>