Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summary Row in DataGrid

Status
Not open for further replies.

Compkitty

Programmer
Jan 7, 2005
121
US
Below is my code, however it's not finding the value

Code:
    If e.Item.ItemType = ListItemType.Item Or _
       e.Item.ItemType = ListItemType.AlternatingItem Then
            AdventVal += Convert.ToSingle(DataBinder.Eval(e.Item.DataItem, "MVValue"))
        ElseIf e.Item.ItemType = ListItemType.Footer Then
            e.Item.Cells(1).Text = "<b>Total:</b> " & String.Format("{0:c}", Value)
        End If

Value is Double
MVValue is a textbox w/ in the datagrid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top