On 3 forms there are 3 data bases, one for each. On 1 and 2 the table in the data has values. On form 3 there is a datagrid and a button. How to make, that on pressing the button and data on the 3 form the values from 1 and 2 forms are recorded?
- How are the forms related? the parent-child relationship is interested, or if the order of opening the forms and the initiators of the opening are simpler. What data source is used for 1st and 2nd grids? - rdorn
|
1 answer
The simplest way is to transfer pointers to the first 2 datagroups in 3 forms. You can make them public in forms, and submit the forms and Form.DataGridView through the Form.DataGridView . Well, then select the data on the cells and copy.
A little more, perhaps, it is more correct to add a form access method to the data cell in the form, it can be made constant to protect the first 2 data paths. And pass this method to the 3 form for access.
|