Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: How to set an initial sort on a Lan datagrid
Jordan
Posts: 61
 
How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Nov 11 5:31 PM
fiogf49gjkf0d

On the "Associate Campaign" form, there is a grid "grdCampaign". I want to set initial sort on CAMPAIGNNAME. I added “Order by CAMPAIGNNAME” into the SQL string. But when I open the form, it doesn't work. Any thoughts?


Our system is SLX Lan 7.5.3

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Nov 11 5:58 PM
fiogf49gjkf0d

The grid also has a set of columns (the SQL is used to override/refresh) - so, click the Columns property of grid, click the column campaign name. Should do it (the SQL retrieves the data - orderby ignored - and the grid sorts the data in memory).

[Reply][Quote]
Jordan
Posts: 61
 
Re: How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Nov 11 9:42 AM
fiogf49gjkf0d

Thanks Mike. Got it Laughing

[Reply][Quote]
Jordan
Posts: 61
 
Re: How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Nov 11 3:09 PM
fiogf49gjkf0d

One more question:


After the grid is refreshed, it always selects and displays a row in the middle of the grid (the right-side vertical scrollbar is in the middel position) and we can't see the first row. What we need is that the grid displays the first row (the right-side vertical scrollbar is on the top).


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Nov 11 6:24 PM
fiogf49gjkf0d

You can set use SelectFirstRecordForGrid(yourGridName) (this is from the script SLX_Common, just include it in yours) - this will select the first record in the grid (if there are any).

[Reply][Quote]
Jordan
Posts: 61
 
Re: How to set an initial sort on a Lan datagrid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Nov 11 11:11 AM
fiogf49gjkf0d

Thanks Mike.

[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 © 2024 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): 11/25/2024 8:07:52 PM