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?
Who is Participating?
TornadoVConnect With a Mentor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.