I have tried this , but i don't know how to manipulate LINQ query to find difference between two columns from the data table.
I have two datatables dtStockTransactionData
and dtStocksData
. Below code explains how I have manupulated the result
DataTable dtMerged = (from a in dtStockTransactionData.AsEnumerable()
join b in dtStocksData.AsEnumerable()
on a["exchangesymbol"].ToString() equals b["exchange_symbol"].ToString()
into g
where g.Count() > 0
select a).CopyToDataTable();
grdErrSTSData.DataSource = dtMerged;
grdErrSTSData.DataBind();
return dtMerged;