12/16/2025 4:30:23 AM
|
| |
| 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!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
DataGrid control Sortable = False When to use it?
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! |
|
|
|
Re: DataGrid control Sortable = False When to use it?
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.
|
|
|
|
Re: DataGrid control Sortable = False When to use it?
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.
|
|
|
|
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!
|
|
|
|
|
|
|
|