Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 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: How to highlight/select DataGrid row using Index or rownumber
Harry
Posts: 13
 
How to highlight/select DataGrid row using Index or rownumberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 10 5:23 AM
Hi. Legacy script had a feature: DBGridMove "Datagrid","Next" which would move selected row to the next row. How can I do this in VB script-?

this is what I have so far.
Datagrid.Selection.Clear
Datagrid.Selection.Add("FieldValue")

If I could get the fiieldvalue using index then I could use something like this
Datagrid.Selection.Add(datagrid.SelectedNodes.Item(0).Values(3))

except the datagrid.selectednodes.item(0) will always be zero can't be greater than zero since I am always selecting one row.
this is not a multi selected row.

Thank You
H
[Reply][Quote]
Harry
Posts: 13
 
Re: How to highlight/select DataGrid row using Index or rownumberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 10 5:25 AM
Oh, also I wanted to add that I can't use shell WScript object to send keystrokes, since this grid will be located on another form.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: How to highlight/select DataGrid row using Index or rownumberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jul 10 8:19 AM
well Selected is NOT Selected Nodes (or vice versa). We use SelectedNodes all of the time for an accurate reading on what the USER has actually selected (not what SLX thinks they've selected, which automagically includes the first row of a grid whether it has data or not, and whether the user has clicked on it or not).

I don't know if this stuff works, but it appears on the right track.
Datagrid.Selection.Clear
Datagrid.Selection.Add("KeyFieldIDValue")

I would loop through the grid looking for a field value, then do a Datagrid.Selection.Add for that specific KeyFieldID value.....

I don't know if you have to refresh the grid or mess with OnCustomDrawCell to get the grid to highlight your nonGui row selection.....
[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): 7/7/2025 10:35:48 AM