Link to home
Start Free TrialLog in
Avatar of mainrotor
mainrotor

asked on

How can I clear a bound GridView in C#.Net

Hi experts,
I use a bound GridView in my ASP.Net application with C# code behind.  I bind the GridView with a data table using the code below.  I need to know how to clear the bound GridView.  Thanks in advance.

            dt = Session["Addresses"] as DataTable;
            gdvAddresses.DataSource = dt;
            gdvAddresses.Visible = true;
            gdvAddresses.DataBind();  

MRotor
ASKER CERTIFIED SOLUTION
Avatar of Edgard Yamashita
Edgard Yamashita
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial