I have a DataGridView in which I want to sum up values from two different columns into a third column.
Example DataGridView:
A B
You could easily do this
But you should have a dataset or localdatabase connection like SQL I will assume that you got it and name it Totaldataset.
Easily done I know it's too late answer but maybe it help some new readers.
Datacolumn column = new Datacolumn ();
column.Columnname = "Total";
Totaldataset.Tables[0].Columns.["Total"].Expression = "a+b";