Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 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: Check datagrid for rows
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 07 12:23 PM
Is there an easy way to tell if a datagrid has records or not? Thanks
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 07 12:51 PM
If DataGrid1.Recordset.RecordCount = 0 Then MsgBox "No Rows!"

-Ryan
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Apr 07 1:00 PM
fiogf49gjkf0d
Thanks Ryan. Another one - How can I disable a popup menu item programatically?
DataGrid1.PopupMenu.Items.????? - not sure where to go.

Thanks
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 07 12:06 AM
Assuming that the Index of the Item that you want to disable is 1:

DataGrid1.PopupMenu.Items(1).Enabled = False

[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 07 9:10 AM
fiogf49gjkf0d
Thanks Raul. That's the ticket.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Check datagrid for rowsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Feb 08 12:05 AM
Unfortunately that's a big assumption on the PopUpMenu Items.

Why are the Popup Menu Items 0,1,2,.....when you perform an AXFormChange....and then bump up by the number of
grid.EditOptions.ShowEdit = TRUE
plus 1
that are True?
[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): 8/18/2025 5:16:50 PM