Results 1 to 3 of 3

Thread: [RESOLVED] How do I subtotal a datagrid column? (VB.net 2008)

  1. #1

    Thread Starter
    New Member victorpc553's Avatar
    Join Date
    Jul 2011
    Location
    San Juan, Puerto Rico
    Posts
    15

    Resolved [RESOLVED] How do I subtotal a datagrid column? (VB.net 2008)

    Hi gurus:

    I'm pulling the data from a database (via dataset) and presenting in a Datagridview.

    I need to have a column to display the total of “amount” column.

    How can I do this? Any full examples you can share with me?

    This is not for ASP.NET but for VB.NET 2008.

  2. #2
    Frenzied Member CoachBarker's Avatar
    Join Date
    Aug 2007
    Location
    Central NY State
    Posts
    1,121

    Re: How do I subtotal a datagrid column? (VB.net 2008)

    Here is a small example I was given when I needed to do something og this sort. It display the total in a textbox though not a column. Hopefully it will get you on the right track.

    CalcDGVColumn.zip
    Thanks
    CoachBarker

    Code Bank Contribution
    Login/Manage Users/Navigate Records
    VB.Net | C#

    Helpful Links: VB.net Tutorial | C Sharp Tutorial | SQL Basics

  3. #3

    Thread Starter
    New Member victorpc553's Avatar
    Join Date
    Jul 2011
    Location
    San Juan, Puerto Rico
    Posts
    15

    Re: How do I subtotal a datagrid column? (VB.net 2008)

    Quote Originally Posted by CoachBarker View Post
    Here is a small example I was given when I needed to do something og this sort. It display the total in a textbox though not a column. Hopefully it will get you on the right track.

    CalcDGVColumn.zip


    Thanks a billion CoachBarker...this is the ideal expected answer......suggestion with a code (example) what more can I ask for!!! Again thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width