🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #11

Re: "Index 1 is not non-negative and below total rows count"

#11
From: Marc Rohloff TeamB
Date: Wed, 10 Jan 2007 19:25
14 lines
1537 bytes
On Wed, 10 Jan 2007 14:49:23 +0100, Brigitte Spatz wrote:

>      bm.AddNew; //bm = BindingManager
>      with dv.Item[bm.Position].Row do
> 
> Inspecting shows bm.Position to be correct. What could be wrong here?

What are the values of bm.Position and dv.Count?

Have you tried calling dv.AddNew instead?

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <j17ogn2nca3.dlg@dlg.marcrohloff.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45a4eee5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,c2e9cd633050f6c5
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: "Index 1 is not non-negative and below total rows count"
Newsgroups: borland.public.delphi.database.dotnet
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <45a4eee5@newsgroups.borland.com>
Date: Wed, 10 Jan 2007 14:25:31 -0500
Message-ID: <j17ogn2nca3.dlg@dlg.marcrohloff.com>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0702-0, 01/09/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 65.31.1.121
X-Trace: newsgroups.borland.com 1168457122 65.31.1.121 (10 Jan 2007 11:25:22 -0800)
Lines: 14
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail