views:

20

answers:

2

I want to clear my gridview. I have 2 GridViews and Has Select Button On It. on Selecting this button that item goes into the second gridview. now the question is how should i clear the second grid view. I am trying the clear method but clear method is not found in my visual studio..

A: 

bind a new dataset to it.

masoud ramezani
+2  A: 
dataGridView1.DataSource = null;

or

dataGridView1.Rows.Clear();
sadboy