Article View: borland.public.delphi.aspdotnet.components.using
Article #255Re: Inserting record in Detail dbwebgrid.
From: John Moshakis
Date: Thu, 24 Mar 2005 03:45
Date: Thu, 24 Mar 2005 03:45
33 lines
2390 bytes
2390 bytes
Vagelis wrote: > > > > I mean that the error occurs when I press the "Insert" button of the > second dbWebNavigator.I get the error message: "Internal Error in > Module DBWebGrid2.Invalid CurrentPageIndex value. It must be >= 0 and > < the PageCount." and no row is added to DBWebGrid2. DBWebGrid2 is > not even rendered on the page. Instead of DBWebGrid2 I get the > beautiful error message on my page. Could this probably mean that the > problem has to do with rendering of the 2nd dbWebGrid? Or maybe > something before the rendering takes place? I'm not experienced > enough to judge. But it looks as if the PageCount value of DBWebGrid2 > is estimated according to the pages needed for the specific record of > the master table. So when a new record with no specified foreign key > is added in the end of the detail table, PageCount property is > exceeded. I would like to catch the exception and check the PageCount > value right before the error occurs.Should I implement the OnClick > event of DBWebNavigator2? And if this is the actual problem how could > I change the PageCount property? > > Thanks for your interest John. > > Vag The onclick of the dbwebnavigator wouldn't be fired when you press the buttons. I've never seen the error your getting. What database are you using ? You could post an example in the attachments group and I'll have a look at it. Cheers, John
Technical Details
Message-ID:
<424237c1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<423ab985@newsgroups.borland.com> <423b32b6$2@newsgroups.borland.com> <423ea01f@newsgroups.borland.com> <423f96c1@newsgroups.borland.com> <423fdbd8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,6c294b2d21e85c9b X-Google-Attributes: gid21665a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John Moshakis" <john@moshakis.com> Subject: Re: Inserting record in Detail dbwebgrid. Newsgroups: borland.public.delphi.aspdotnet.components.using References: <423ab985@newsgroups.borland.com> <423b32b6$2@newsgroups.borland.com> <423ea01f@newsgroups.borland.com> <423f96c1@newsgroups.borland.com> <423fdbd8@newsgroups.borland.com> User-Agent: XanaNews/1.17.1.2 NNTP-Posting-Host: 70.25.29.152 Message-ID: <424237c1@newsgroups.borland.com> Date: 23 Mar 2005 19:45:05 -0800 X-Trace: newsgroups.borland.com 1111635905 70.25.29.152 (23 Mar 2005 19:45:05 -0800) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail