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