Tag: 可见

有条件地显示隐藏asp.net Gridview列

这是我导航到myPage.aspx , <a href='https://stackoverflow.com/questions/17481250/conditionally-show-hide-asp-net-gridview-column/~/myPage.aspx?show=’ id=”showEach” runat=”server”>Show Each Show All 我在myPage.aspx有一个gridview 我想要做的是,如果Query String等于all (〜/ myPage.aspx?show = all),我想将GridView1的Column2设置为true,否则设置visible为false。 我该怎么做 ?