Jump to content


Photo

deleting multi-selected rows


  • Please log in to reply
1 reply to this topic

#1 realguigui

realguigui
  • Members
  • 3 posts

Posted 08 February 2005 - 03:48 PM

Hi.

Sorry, i can't find how to delete multi-selected rows (i have also searched on the forum but without success)

Thanks wink.gif

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

Posted 08 February 2005 - 06:56 PM

Hello,

You need to write something like this:

CODE
i := 0;

while i < grid.rowcount do

begin

 if grid.selected[i] then grid.deleterow[i] else i := i + 1;

end;  


I hope that this help smile.gif

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users