Board index » delphi » DBgrid1.SelectedRows.Delete;

DBgrid1.SelectedRows.Delete;

Hi,

can someanone help me with the following problem :

I use delphi 2.0

Each time I use DBgrid1.SelectedRows.Delete;
I get the message :

STOP    Record/key deletete

How can I prevent this message

 

Re:DBgrid1.SelectedRows.Delete;


Quote
Mark Libbrecht wrote:

> Hi,

> can someanone help me with the following problem :

> I use delphi 2.0

> Each time I use DBgrid1.SelectedRows.Delete;
> I get the message :

> STOP    Record/key deletete

> How can I prevent this message

Why are you using the DBGrid to delete the records ?

You could just issue a Table.Delete statement for the attached Dataset.

HTH

Rkr
--

                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman                              .
. Delphi Programmer                       .
. TVisualBasic:=class(None)               .
. May the Source be With You              .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A                        .
. E-Mail : rkroman (at) home (dot) com    .
-------------------------------------------

Other Threads