How to get All records from DataGridView

Posted on 2006-05-13
Last Modified: 2010-04-17
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.
Question by:MuhammadAdil
    1 Comment
    LVL 14

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    This is about my first experience with programming Arduino.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now