Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Forms to Datagridview export to excel, Calculate and recall in another datagridview.

$
0
0

This concept i'm using may be odd.

since I'm no coder and don't understand most of the coding available online im trying to simplify my calculations. So kindly help with the issue below

Equations are available as text in datagridview1

Eg: (0.09+32*A)*0.12 and 

         18.5*S 

Assume All the equations are in Sheet1 and same directory of my VS solution File (Excel Name:Factors.xls)

Now in forms i gave input Value for "A" in Textbox1 and "B" inTextbox2

These inputs are to be exported in to Sheet2 of Factors.xls  Row[2].Cell[2] and Row[3].Cell[2].

Note: not every cell is having formulas

We have to use sheet3 to use values in sheet 2 convert the formulas into values and import the same to datagridview2

or

is there any method i can calculate directly in Datagridview and change all cells with formulas

Thanks in advance

Harsha vardhan


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>