HI,
I need to fetch the data form the database and thn calculate it and then want to display the data in to the datagridview.
Calculation before providing it to datagridview
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 6, 2014, 10:43 PM EST
Read the above article.
Joginder BangerRank #360 · 7K reputationPosted Nov 6, 2014, 11:06 PM EST
DataTable dt= new DataTable("TableName"); //Table Name is optional
dt=queryFrom Database;
Check a proper your data successfully load in dt;
if(dt.Rows.count==0) // No data upload in your dt
get a data Row by Row
foreach(Row _row in dt.Row)
{
//you stuff here
}
after complete row again add row in your dt.
Munesh SharmaRank #174 · 13.9K reputationPosted Nov 6, 2014, 11:10 PM EST