Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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: DataGrid control Sortable = False When to use it?
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
DataGrid control Sortable = False When to use it?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jan 10 9:47 AM
Has anyone ever set this to false? Why and when? I think designers with a low amount of SLX knowledge glom onto the word 'Sort' and think it has something to do with the recordset order as it appears in the grid.....when it's AutoSort = False that they actually want (prevent user from sorting on a grid caption header to sort by that column).

enquiring minds want to know!

Thanks!
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: DataGrid control Sortable = False When to use it?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jan 10 10:40 AM
Based on the Description:

Sortable = True:
- Loads whole Dataset to Memory
- Allows Sorting functionality
- Allows Grouping Functionality

AutoSort = True
Instruct the grid to handle any clicks on the Column Headers as request to Sort by the clicked on Column and requires Sortable = true

However, I have done some testing, and I am able to sort a grid even without having "Sortable = True" (then again, maybe it has a different effect on larger datasets.


[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: DataGrid control Sortable = False When to use it?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jan 10 2:02 PM
the user selection collection is adversely affected by sortable = false.....you get a bogus selection. Say the user selects 100 random rows from 6 scrollable pages of 30 rows each.....how many rows has the user selected?

Well according to a visual count of highlighted/selected rows the answer is 100.....but due to sortable = false the answer is at most 30 (one viewable page).

Depending on joins and such, you still may be able to sort on a column header with sortable =false....but in my grid, sorting on the rightmost visible column gives me an ambiguous column name error....that's because SLX OLE DB Provider SQL is reusing SQL Table Aliases and not changning the ORDER BY ALIASES!!!!!

Ouch.


Sortable = True:
- Loads whole Dataset to Memory (into the grid)
- Allows AutoSorting functionality (one column sort based on Header Caption click)
- Allows Grouping Functionality
- Allows for accurate user selection collection creation.
- slow loads for large datasets
- slow sorts for large datasets, painfully slow.


[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/26/2024 9:30:56 AM