Results 1 to 10 of 10

Thread: How to combine 2 data grid view to one data grid view and insert it to new table

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2018
    Posts
    90

    How to combine 2 data grid view to one data grid view and insert it to new table

    Hi All,

    I want to improve my program (MONITORING OUTPUT SYSTEM) and create report for it.

    Here it looks like:
    datagridview on the left is from datasource it auto count the OUTPUT, then datagridview on the right is manual data means no datasource and users must keyin the Target number they want.
    Name:  4.jpg
Views: 4760
Size:  16.3 KB

    after they key in target they will click Refresh and it will count the Balance by OUTPUT - TARGET.
    Name:  5.jpg
Views: 4545
Size:  18.6 KB

    Now I want after user click Refresh button , I want to get all the data from 2 data grid view and combine to new data grid view below and I want to insert it to new table in my sql .
    How can I move the data from 2 datagridview to 1 datagridview ?
    I am thinking if it will work this way:
    datagridview_Report = datagridview_OUTPUT.datasource ,datagridview_TARGET.datasource.
    really dont know what to do.

    Please help me and thank you in advanced.
    Name:  6.jpg
Views: 4368
Size:  20.3 KB

    this is related to my question before:
    http://www.vbforums.com/showthread.p...alculate-value
    Last edited by BONITO; Jul 2nd, 2019 at 10:35 PM. Reason: Image not showing

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width