CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Location
    Germany
    Posts
    936

    Re: There is no row at position -1

    That error means that you try to get access to a row by index -1, but rows are always zero-based. Through this rows with negativ index do not exist.

    In most cases -1 means that there is no entry in a collection you are looking for, for instance the method IndexOf() returns -1 if the object is not in the collection.

    But I am not a fortune teller, so I can not say clearly what the error in your code is without having a look at it.
    Useful or not? Rate my posting. Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Turkey
    Posts
    54

    There is no row at position -1

    "There is no row at position -1" what is the reason of this exception? I couldn't understand the reason of this, because it occurs random I think. I didn't come across this exception while debugging the program for hours.

  3. #3
    Join Date
    May 2003
    Location
    Germany
    Posts
    936

    Re: There is no row at position -1

    Nice feature of the board to show the answer above the question.
    Useful or not? Rate my posting. Thanks.

  4. #4
    Join Date
    May 2004
    Location
    Greenville, NC
    Posts
    193

    Re: There is no row at position -1

    But I am not a fortune teller[snip]
    I beg to differ! Answering the question before the question is asked is definitely divine. :P
    Jason Isom
    .NET 2.0 / VS2005 Developer

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

Featured