Article View: borland.public.delphi.database.dotnet
Article #168Re: current record for DbWebDataSource...continued
From: Marco Milani
Date: Sat, 17 Sep 2005 08:52
Date: Sat, 17 Sep 2005 08:52
43 lines
2243 bytes
2243 bytes
If I delete the dbgrid (and dbwebcontrols) selected/current record in dataset in this way: myDataset.Tables["tablename"].Rows[dbWebGrid1.SelectedItem.DataSetIndex].Delete(); dataadapter.Update(myDataset,"tablename"); at the end of the execution the grid has no selected row. I tried to exted the code above with this: (dbWebDataSource1 as IDBPostStateManager).SetCurrentRow(this,"tablename",0); but the grid (and dbwebcontrols) remains without current record. Thank you again. M ----- Original Message ----- From: "John Moshakis" <john@moshakis.com> Newsgroups: borland.public.delphi.database.dotnet Sent: Friday, September 16, 2005 8:31 PM Subject: Re: current record for DbWebDataSource > Hello Marco Milani" marcomilani_marcomilani.it, > >> How can I programmatically set the current record in a bdp aps.net >> application using dbwebdatasource and dbwebdatagrid? >> > > You can do something like this > > var > psm:IDBPostStateManager > > begin > > psm:=dbWebDataSource as IDBPostStateManager; > > psm.SetCurrentRow(self,'TableName',newRowIndex); > > Cheers, > John > >
Technical Details
Message-ID:
<432bd909$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<432af00a$1@newsgroups.borland.com> <6701ba088988c788e2411297a7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,ea3936d9a20f2356 X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marco Milani" <marcomilani_marcomilani.it> Newsgroups: borland.public.delphi.database.dotnet References: <432af00a$1@newsgroups.borland.com> <6701ba088988c788e2411297a7@newsgroups.borland.com> Subject: Re: current record for DbWebDataSource...continued Date: Sat, 17 Sep 2005 10:52:46 +0200 Lines: 45 Organization: Marco X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.52.49.35 Message-ID: <432bd909$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126947081 82.52.49.35 (17 Sep 2005 01:51:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail