Datagridview delete row

i am new in C#. using datagridview control. but this control is not connected with any recordset. i am just adding some value in loop. i want to delete all rows from datagridview. how can i do this. can anyone tell me, plz.



Answer this question

Datagridview delete row

  • Shrad

    Thank you very much. I was digging more than 2 hours on it. Its works.

  • Mehdi311ggg

    Hi,

    How about using the following statement Try this and see.

    this.dataGridView1.Rows.Clear();

    - Mamta


  • Datagridview delete row