Results 1 to 8 of 8

Thread: datagrid total

Threaded View

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Resolved datagrid total

    I have a datagrid which is bound to a filtered dataview, what is the best way to go about totalling the numerical values and putting them in the footer

    VB Code:
    1. Dim dr As DataRowView
    2.         Dim range01tot As Decimal = 0.0
    3.         Dim i As IEnumerator = dvOne.GetEnumerator()
    4.         While (i.MoveNext())
    5.             dr = i.Current
    6.             range01tot += (dr("value"))
    7.         End While
    Last edited by davebat; Oct 6th, 2004 at 07:24 AM.

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