﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Deleting multiple rows with one confirmation</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 26 Jun 2026 02:12:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8752.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;If I select 5 rows in a grid (Devexpress) for deletion and hit delete StrataFrame asks me to confirm the delete of each row one at a time. Can I change this to delete all 5 in one hit?&lt;/P&gt;&lt;P&gt;Actually, the ideal would be to be able to select either confirm one at time or all at once at the BO level.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Wed, 16 May 2007 08:53:06 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8823.aspx</link><description>Glad to hear you got it working :)</description><pubDate>Wed, 16 May 2007 08:53:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8819.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Thanks for that. Just to bring this thread up to date here's what I did:&lt;/P&gt;&lt;P&gt;1) Intercepted the delete button press on the (DevExpress) grid.&lt;/P&gt;&lt;P&gt;2) Checked if the BO's &lt;FONT size=2&gt;AutoShowDeleteConfirmation is False.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;3) Is so fired&amp;nbsp;my delete confirmation message&amp;nbsp;and used&amp;nbsp;the grid's SelectedRowsCount for delete record count.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;4) If the user says&amp;nbsp;ok to the delete then process as normal otherwise I cancel the button press event.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Cheers, Peter&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 15 May 2007 22:58:57 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8794.aspx</link><description>There is only one indicator for a row selection in the BO and that is the CurrentRowIndex which is displayed in the CurrentRow.&amp;nbsp; This logic is left up to you as to know which rows are to be deleted.&amp;nbsp; If they are loaded into a List then you could delete all of the rows by PK which have been selected in the list.&amp;nbsp; There is nothing in the BO that allows you to "select." Now you can navigate through a BO and "mark: it for deletion back on the server without actually deleting until you call Save().&amp;nbsp; This is done by calling the DeleteCurrentRow(True) on the BO.</description><pubDate>Tue, 15 May 2007 07:58:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8788.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;Thanks for that. One (hopefully) minor issue remains - in the BO's BeforeDelete I want to display a message along the lines: "Confirm deletion of X rows". However I just can't find a BO Data Table or Data View property that tells me if a row is selected or not so I can calculate a value for X. Obviously it must be available for physical deletion process but I just can't identify where it is.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Tue, 15 May 2007 00:13:00 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Deleting multiple rows with one confirmation</title><link>http://forum.strataframe.net/FindPost8762.aspx</link><description>The problem is that the grid deletes each record individually, which calls DeleteCurrentRow() on the business object for each record that needs to be deleted.&amp;nbsp; What you'll need to do is turn off the AutoShowDeleteConfirmation and handle the delete event on the grid to show your own message.</description><pubDate>Mon, 14 May 2007 08:55:52 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>