Re: Add a Row to DataGrid

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andrew de la Harpe (andrew_dela_at_hotmail.com)
Date: 02/16/04


Date: Tue, 17 Feb 2004 10:50:20 +1100

Insert the total into the footer
A
"Jon" <jonspivey@NOCRAPTHANKStiscali.co.uk> wrote in message
news:uAZD0ZO9DHA.2368@TK2MSFTNGP11.phx.gbl...
> Hi,
> Working on a shopping cart app. I'm using a datagrid on the shopping cart
> page with boundcolumns to display Product name, cost, quantity etc - that
> all works fine. However I want to add a row to the bottom of the grid to
> display cart total, so I'd end up with something like this
> Product Cost Quantity Sub Total
> Product1 10.22 1 10.22
> Product2 5.00 2 10.00
> Cart Total 20.22
>
> So my question is how do I add a row to the bottom of the datagrid to
> display the total?
>
> Cheers,
> Jon
>
>



Relevant Pages

  • Add a Row to DataGrid
    ... Working on a shopping cart app. ... page with boundcolumns to display Product name, cost, quantity etc - that ... display cart total, so I'd end up with something like this ... Product Cost Quantity Sub Total ...
    (microsoft.public.dotnet.framework.aspnet)
  • FOR EACH - NEXT SubTotal Calculation
    ... item is in the user's shopping cart. ... I try and display the subtotal and add a count of each item in the ... Here is the snippet of code for my loop: ... Dim MyCookie as new httpCookie ...
    (microsoft.public.dotnet.framework.aspnet)
  • Blank Row When Adding to DataGrid
    ... shopping cart then show the subtotal, any discounts, and the final ... I'm pulling the contents of the shopping cart from ... I would like to add three rows to the end of the DataGrid ... TableCell cell = new TableCell; ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Blank Row When Adding to DataGrid
    ... shopping cart then show the subtotal, any discounts, and the final ... I'm pulling the contents of the shopping cart from ... I would like to add three rows to the end of the DataGrid ... TableCell cell = new TableCell; ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: How to access contents of cells within a generated table?
    ... >I am writing a custom control to display the contents of a shopping cart ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)