clean the gridview

Posted on 2006-05-13
Last Modified: 2008-02-01
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?
Question by:ANAT2403
    LVL 11

    Accepted 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;

    Author Comment

    So simple but that's what I was looking for.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now