title: Remove css from div on server side C#
body: <p>i have a div tag which has inline css whose visibility is hidden</p>
  
  <pre><code> &lt;div id="SecondGrid" runat="server" style="width:80%; margin-left:10%; visibility:hidden;"&gt;
  //content
  &lt;/div&gt;
  </code></pre>
  
  <p>i have a button in gridview, on click of which i want to remove the visibility css of the above div</p>
  
  <pre><code>  protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
      {
          if (e.CommandName == "ShowCarModels")
          {
              CarBrandID = Convert.ToInt32(e.CommandArgument.ToString());
              BindGridView2(CarBrandID);
              SecondGrid.Style.Remove("visibility");
  
          }
      }
  </code></pre>
  
  <p>the div still appear to be hidden. can you please help me out. </p>