How to get All records from DataGridView

Hello Dear
How to get All records from DataGridView. I have datagridview bound with multiple datatable. I want to get all records of datagridview into new Datatable on button pressing.
LVL 6
MuhammadAdilAsked:
Who is Participating?
 
nayernaguibConnect With a Mentor Commented:
The DataGridView.Rows collection contains the rows that the DataGridView currently holds. For example, DataGridView.Rows[0] represents the first row, DataGridView.Rows[0].Cells[0] represents the first column of the first row,  and so on...

_______________

  Nayer Naguib
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.