Hello,
I am using ms access as a database, already have bind the data in datagridview. Need to summerize the timespane i have tried but it show not in a correct formate. kindly help me
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
dinesh kumar64 reputationPosted Apr 23, 2015, 12:56 AM EDT
If it's only format then you could apply through
praveen kumar185 reputationPosted Apr 23, 2015, 1:53 AM EDT
dinesh kumar64 reputationPosted Apr 23, 2015, 3:44 AM EDT
http://blogs.msdn.com/b/vinsibal/archive/2008/10/31/wpf-datagrid-frozen-row-sample.aspx
if this helps you please upvote it
Regards,
DK
praveen kumar185 reputationPosted Apr 23, 2015, 9:23 PM EDT
to get total value of the columns i am using this code
int sum = 0;
for( int i=0; i
sum +=Convert.ToInt32(dataGridView1.Rows[i].Cells[4].Value);
}
label2.Text = sum.ToString();
i just want to get my timespan total calculation of the entire columns, it showing
this error Invalid cast from 'DateTime' to 'Int32'.
kindly help me
thank you