1 Replies - 9066 Views - Last Post: 09 August 2012 - 07:14 AM Rate Topic: -----

#1 beginner_emman   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 08-August 12

Display sum of one column in datagridview in the LastRow

Posted 09 August 2012 - 07:08 AM

it's me again, i have read so many forums related to this matter, some says it is not possible some says it is...nad honestly i dont have an example code on how to this one..all i want is to display the sum of one column in datagrid in lastrow or footerRow..here is my example..

"take note, this is not connected to database.."

'attched are my screenshot of my process..
'basically if you put the amount then click the compute button, the system will atoumatically compute for the principal, interest,payment and balance..

'this is a loan application example....

'i want to put the total at the last row in datagrid attached herewith....

'again it is no need to connect it to the database..

'is my query is possible?

'thank you so much, any help will be much appreciated..

Attached image(s)

  • Attached Image
  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: Display sum of one column in datagridview in the LastRow

#2 smohd   User is offline

  • Critical Section
  • member icon


Reputation: 1824
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: Display sum of one column in datagridview in the LastRow

Posted 09 August 2012 - 07:14 AM

Quote

"take note, this is not connected to database.."

Since you are not binding it to the database, then it is possible.
You will need a loop to loop through the whole column, do summation and then add a new row to the grid and add a summation value to its last cell!
Try it and show us some of your effort and we are happy to help
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1