Adding numeric datatype columns' content in a datagrid

Discussion in 'ASP .Net' started by .Net Sports, Jun 23, 2005.

  1. .Net Sports

    .Net Sports Guest

    I'm trying to display the total of a list of numbers in a datagrid. The
    numbers (dollaramount in sales) will be part of a dataset according to
    the date queried. I will display the total in the footer row. What is
    the best way to calculate the total of "dollar amount in sales" and
    carry that sum into the footer (dollaramount column), as I've looked at
    various resources, but they don't explain this very clear.
    Thanks in advance, .NetSports
    .Net Sports, Jun 23, 2005
    #1
    1. Advertising

  2. Use PreRender event. Loop through the data items, calculate the sum, and set
    it in the footer.

    Eliyahu

    ".Net Sports" <> wrote in message
    news:...
    > I'm trying to display the total of a list of numbers in a datagrid. The
    > numbers (dollaramount in sales) will be part of a dataset according to
    > the date queried. I will display the total in the footer row. What is
    > the best way to calculate the total of "dollar amount in sales" and
    > carry that sum into the footer (dollaramount column), as I've looked at
    > various resources, but they don't explain this very clear.
    > Thanks in advance, .NetSports
    >
    Eliyahu Goldin, Jun 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    915
    X-Centric
    Jun 30, 2005
  2. Jeff
    Replies:
    2
    Views:
    1,128
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 16, 2007
  3. darrel
    Replies:
    4
    Views:
    795
    darrel
    Jul 19, 2007
  4. jobs

    int to numeric numeric(18,2) ?

    jobs, Jul 21, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    941
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Jul 22, 2007
  5. rob thomson
    Replies:
    0
    Views:
    254
    rob thomson
    Sep 4, 2003
Loading...

Share This Page