How to can i do like this:
datagridview1.row [i] = input value , and results(calculated) in datagridview2's row[i] = output value. it means input row and output rows are neeb to be same. i need to connect them. please help me.

Extract values from DGV1 row. Convert them to doubles. Do calculations. Fill in values in DGV2 row.

I guess you do this in the clickhandler of your calculate button.
You could use the Double.Tryparse method. To change the row values of your DGV. Success!