[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 554
  • Last Modified:

clean the gridview

In ASP.NET 2.0 I have a gridview bound to dataset .
I have a clean button that I want that with a click on it the gridview will disappear untill
I have new criterions an I click a GO button. How do I make the grid view to disappear?
1 Solution
You can simply make your gridview invisible until you have a new source for it, then you can make it visible again.

protected void ButtonClean_Click(object sender, EventArgs e)
       GridView1.Visible = false;
ANAT2403Author Commented:
So simple but that's what I was looking for.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now