Results 1 to 7 of 7

Thread: Sorry but I have asked this before re looping on a datagrid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Sorry but I have asked this before re looping on a datagrid

    Sorry but someone gave me the anser to this question before, but I have some how lost it, please can anybody help once again?

    The question is how to "loop through a datagrid collumn to add values to a variable

    in VB6 it was something like:
    do while not .eof
    myvariable = myvariable + datagrid1.collumns(6)
    loop

    Thanks to anybody who has the time to spare

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: Sorry but I have asked this before re looping on a datagrid

    Which version of vb are you using?

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: Sorry but I have asked this before re looping on a datagrid

    If you click User CP above your first post, you can select List Subscriptions to view a list of all your subscribed threads + find your answer

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Re: Sorry but I have asked this before re looping on a datagrid

    I'm now using VB2008

  5. #5
    New Member
    Join Date
    Feb 2010
    Posts
    3

    Re: Sorry but I have asked this before re looping on a datagrid


  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Re: Sorry but I have asked this before re looping on a datagrid

    Quote Originally Posted by .paul. View Post
    If you click User CP above your first post, you can select List Subscriptions to view a list of all your subscribed threads + find your answer
    Thank You, but looked it's not on there, maybe it was another forum that I asked this perticular question

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: Sorry but I have asked this before re looping on a datagrid

    Can you post your code?
    It'll probably be easier to add the column values in the datasource.

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