You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OboutSuite/Grid/aspnet_totals_groups.aspx

16 lines
543 B

<%@ Page Language="C#" %>
<%@ Register TagPrefix="obout" Namespace="Obout.Grid" Assembly="obout_Grid_NET" %>
<script runat="server" Language="C#">
double totalPrice = 0;
int unitsInStock = 0;
int unitsOnOrder = 0;
public void RowDataBound(object sender, GridRowEventArgs e)
{
if (e.Row.RowType == GridRowType.DataRow)
{
totalPrice += double.Parse(e.Row.Cells[3].Text);
unitsInStock += int.Parse(e.Row.Cells[4].Text);
unitsOnOrder += int.Parse(e.Row.Cells[5].Text);