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: Sorting a datagrid that is dynamically created
Bill
Posts: 71
 
Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Feb 08 3:14 PM
I have a datagrid on a custom tab that is dynamically created. The tab is used in both the Sales and Support Client. The grid.sortable property is = true so it sorts fine in the Sales Client. I am not able to get the grid to sort in the Support Client. The grid is read only in both clients. I tried sorting the grid with read only = false and I was not able to get it to sort. I tried coding it to sort on the OnColumnSorting event also and still no luck. I also tried setting the SQL property of the grid to "select accountid from account where account id = 'bogus' so I could check the soratble property on the grid but the grid has decided it is not going to cooperate in the Support Client. Is there any way to get a read only grid to sort by column in the Support Client if the grid is created dynamically?
[Reply][Quote]
Sankar
Posts: 84
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Feb 08 3:32 PM
Did you try this

Datagrid.Columns.Item(1).Sorted
[Reply][Quote]
Bill
Posts: 71
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 8:29 AM
I tried that on one column in the grid and it didn't work. I'm not so sure that a read only grid can be sorted in the Support Client.
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 10:07 AM
Is the datagrid property of Sortable checked..??
[Reply][Quote]
Bill
Posts: 71
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 1:38 PM
No, the Sortable property can't be checked since the columns are all created dynamically. I did try to trick the system by adding one field in the SQL property and doing a 'Select AccountId from Account Where AccountId is 'bogus'. This would allow me to check the Sortable property of the grid but when I tested it in the Support Client it would not sort.
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 3:10 PM
I mean the sortable property for the entire datagrid, following the population step where you have columns now set the sortable property of the Data grid to True then try and set the column.. eventhough they are dynamic you should be able to grab these properties no..?
[Reply][Quote]
Bill
Posts: 71
 
Re: Sorting a datagrid that is dynamically createdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 3:13 PM
Yes, I tried that and the Support Client still won't let me sort. The Sales Client will sort just fine.
[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:11:13 PM