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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Munesh SharmaPosted Nov 7, 2014, 4:10 AM
Joginder BangerPosted Nov 7, 2014, 4:06 AM
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.
Jaganathan BantheswaranPosted Nov 7, 2014, 3:43 AM
Read the above article.