Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: OnDeleteRow data grid question
Paul VanderWaal
Posts: 23
 
OnDeleteRow data grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Nov 07 7:39 AM
When deleting a row in a data grid, I have some code that needs to run only after the user clicks on Yes, that it is OK to delete the row. Right now, I have the code in the OnDeleteRow event, and that code is firing before the user clicks Yes to allow the row to be deleted. I assume I need to at least temporarily return False, but I don't know the syntax to do that. Also, then, if the user clicks yes, how to I then allow the code to fire?

Thank you.
[Reply][Quote]
muni1900
Posts: 21
 
Re: OnDeleteRow data grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Nov 07 9:48 AM
Hi Paul,

What I do delete, instead of using onDeleteRow, I use onPopupMenuClick. Under this subroutine, I check to see what the user selected from the menu option:

Select Case Item.Caption
Case "&Add..."

'do add

Case "&Edit..."

'do edit

Case "&Delete"

strId = datagrid.GetCurrentField()

If strId <> "" Then
If MsgBox("Are you sure you want to delete this item?", vbYesNo, "Confirm Delete") = vbYes Then

'Do your delete here

End If
End If

End Select

Hope it helps.
[Reply][Quote]
Paul VanderWaal
Posts: 23
 
Re: OnDeleteRow data grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Nov 07 11:13 AM
That makes sense. Thank you.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/20/2025 11:25:48 PM