how can I remove all rows of datagridview and datatable in c#?

Total Post:19

Points:133

C# 
C#
 6863  View(s)
Ratings:
Rate this:
Hi Expert, 

how can I remove all rows of datagridview and datatable in c#?

Thanks in advance. 
  1. Re: how can I remove all rows of datagridview and datatable in c#?

    Hi,


    Try this,

    For datagrideview:

    dataGridView1.Rows.Clear();

    For datatable:

    datatable.Rows.Clear();

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.