Click here to Skip to main content
15,351,471 members
Home / Discussions / C#
   

C#

 
AnswerRe: Stringbuilder printing "System.Collections.Generic.List" instead of the string item in the list, why? Pin
Matt T Heffron7-Jul-16 7:35
professionalMatt T Heffron7-Jul-16 7:35 
QuestionHow to convert .docx file to .html with image and equation Pin
Member 44636384-Jul-16 5:32
MemberMember 44636384-Jul-16 5:32 
AnswerRe: How to convert .docx file to .html with image and equation Pin
Eddy Vluggen4-Jul-16 6:27
professionalEddy Vluggen4-Jul-16 6:27 
AnswerRe: How to convert .docx file to .html with image and equation Pin
Kimberly Weldon5-Jul-16 1:13
MemberKimberly Weldon5-Jul-16 1:13 
AnswerRe: How to convert .docx file to .html with image and equation Pin
koolprasadd6-Jul-16 18:21
professionalkoolprasadd6-Jul-16 18:21 
Questionsimulate Alt+Shift in all objects of project C# Pin
hahaie3-Jul-16 22:22
Memberhahaie3-Jul-16 22:22 
AnswerRe: simulate Alt+Shift in all objects of project C# Pin
OriginalGriff3-Jul-16 22:50
mveOriginalGriff3-Jul-16 22:50 
Questionhow to sum time in grid view footer c# Pin
Member 125037693-Jul-16 20:06
MemberMember 125037693-Jul-16 20:06 
hi to all
i am new with c#
i tray to sum time in grid view footer
i can sum integer but not time
this is my code
C#
int TotalQuantity = 0;
   DateTime dt = new DateTime();
   TimeSpan ts();
   //double totaltime = 00.00;

   protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
   {
       if (e.Row.RowType == DataControlRowType.DataRow)
       {
           TotalQuantity += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "Quantity"));
          // totaltime += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "Time"));


       }
       else if (e.Row.RowType == DataControlRowType.Footer)
       {
           e.Row.Cells[0].Text = "TotalQuantity";
           e.Row.Cells[0].Font.Bold = true;

           e.Row.Cells[1].Text = TotalQuantity.ToString();
           e.Row.Cells[1].Font.Bold = true;

           e.Row.Cells[2].Text = "TotalTime";
           e.Row.Cells[2].Font.Bold = true;

           e.Row.Cells[3].Text = dt.ToShortTimeString();
           e.Row.Cells[3].Font.Bold = true;
       }
   }

QuestionRe: how to sum time in grid view footer c# Pin
Richard MacCutchan3-Jul-16 22:05
mveRichard MacCutchan3-Jul-16 22:05 
AnswerRe: how to sum time in grid view footer c# Pin
Member 125037693-Jul-16 23:11
MemberMember 125037693-Jul-16 23:11 
GeneralRe: how to sum time in grid view footer c# Pin
Richard MacCutchan3-Jul-16 23:20
mveRichard MacCutchan3-Jul-16 23:20 
QuestionC# - New to programming! Stuck! Can someone help explain this code? Pin
Member 126152642-Jul-16 4:21
MemberMember 126152642-Jul-16 4:21 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Dave Kreskowiak2-Jul-16 5:15
mveDave Kreskowiak2-Jul-16 5:15 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Richard MacCutchan2-Jul-16 5:17
mveRichard MacCutchan2-Jul-16 5:17 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
BillWoodruff3-Jul-16 1:55
mveBillWoodruff3-Jul-16 1:55 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
koolprasadd6-Jul-16 18:38
professionalkoolprasadd6-Jul-16 18:38 
QuestionLoading a type dynamically Pin
Super Lloyd1-Jul-16 18:42
MemberSuper Lloyd1-Jul-16 18:42 
AnswerRe: Loading a type dynamically Pin
Eddy Vluggen2-Jul-16 0:50
professionalEddy Vluggen2-Jul-16 0:50 
AnswerRe: Loading a type dynamically Pin
BillWoodruff3-Jul-16 1:58
mveBillWoodruff3-Jul-16 1:58 
GeneralRe: Loading a type dynamically Pin
Super Lloyd3-Jul-16 2:25
MemberSuper Lloyd3-Jul-16 2:25 
QuestionSplit Excel Workbook to sheets Pin
Magic19041-Jul-16 9:05
MemberMagic19041-Jul-16 9:05 
AnswerRe: Split Excel Workbook to sheets Pin
Gerry Schmitz1-Jul-16 9:39
mveGerry Schmitz1-Jul-16 9:39 
AnswerRe: Split Excel Workbook to sheets Pin
Richard MacCutchan1-Jul-16 21:22
mveRichard MacCutchan1-Jul-16 21:22 
AnswerRe: Split Excel Workbook to sheets Pin
Patrice T2-Jul-16 17:26
mvePatrice T2-Jul-16 17:26 
QuestionLinq to SQL multiple tables problem Pin
Member 119277061-Jul-16 8:23
MemberMember 119277061-Jul-16 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.