Need urgent help

34 posts, 2 answers
  1. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 18 Oct 2010 Link to this post

    Hi, 

    I don't believe that's the case. You do have access to the NewRow object, it's just that it's index is -1. 
    Richard
  2. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 18 Oct 2010 Link to this post

    Hi Richard,

    I tried and it is happening. It actually throws an error as soon as you move from a filter textbox with 'sdsd' to a cell in new row.
    The fact is when newIndex == -1, then newItems[0] seems to be null.

    Thanks
    Sunil
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 18 Oct 2010 Link to this post

    ok - This doesn't happen in the later version. I can enter a filter value, then enter data for the new row, and I can get a messagebox with -1 for the index and the newdata object. 

    As a workaround, you could clear the filters when trying to get the new row perhaps? 
    Richard
  5. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 18 Oct 2010 Link to this post

    That may be true, since I am using Q1 2008 SP1, and this issue may have been removed in the version you are using.
    Even after clearing filters, the newIndex == -1 and newRow == null, in my version. So it may be an issue with my version.
Back to Top