Results 1 to 3 of 3

Thread: RESOLVED! Getting the value of a datagrid cell.

  1. #1

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    RESOLVED! Getting the value of a datagrid cell.

    | FNAME | LNAME | STUDENT ID | <-- Header
    ---------------------------------------
    | Robert | Davis | 0411542 <-- data cell

    How do you call to get the value of each cell in a datagrid?


    Thanks.
    Last edited by ARPRINCE; Feb 11th, 2004 at 10:17 AM.

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    Code:
    For count = 0 To dgArticles.Items.Count - 1
          total = total + dgArticles.Items.Item(count).Cells(5).Text
    Next count
    i use this to total up a column
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Smile

    That did it! Thanks.

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