Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have purchase order form in gridview.add the data in gridview and find grand total and edit,delete button also i have.after finding grandtotal,gridview rows show be cleared for another purchase order.this is my question/plz help me....thanks in advance
Posted
Comments
agent_kruger 16-Jan-14 7:18am    
can you reframe the question it is not understandable?

For clearing the rows in the gridview you can use this code..


C#
protected void btnClearRows_Click(object sender, EventArgs e)
       {
           GridView1.DataSource = null;
           GridView1.DataBind();
       }
 
Share this answer
 
Comments
My 5. We posted answers at the same time. :) Cheers !!!
C#
YourGridView.DataSource = null;
YourGridView.DataBind();
 
Share this answer
 
Comments
Karthik_Mahalingam 16-Jan-14 6:30am    
Same 2 u :)
Thanks. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900