Goran Bibic

Goran Bibic

  • 481
  • 2.9k
  • 199.5k

calculate sum of column SAti in LISTview in C#

Jan 22 2024 8:47 AM

calculate sum of column total in LISTview in C#

 

 while (rd.Read())
 {
     usersNB.Add(new userNB
     {
         //my sql
         
         Vrijeme = rd.IsDBNull(rd.GetOrdinal("VRIJEME")) ? string.Empty : rd.GetString(rd.GetOrdinal("VRIJEME")),
         Osoba = rd.GetString("OSOBA"),
 Sati = rd.IsDBNull(rd.GetOrdinal("SATI")) ? string.Empty : rd.GetInt32(rd.GetOrdinal("SATI")).ToString()
                   


 }

Need to sum last column SATI


Answers (1)