Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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: Grouped rows in DataGrid
James Beaumont
Posts: 1
 
Grouped rows in DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 06 9:49 AM
fiogf49gjkf0d
Hi

I'm trying to figure out how to do grouping in datagrids the same way the Sales Process tab groups by stage. Any ideas?
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Grouped rows in DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 1:37 PM
fiogf49gjkf0d
There's a group panel that is present on every grid that you have to turn on. Once it's on you drag the fields you wish to group and it'll put the field in the group panel. You can create a hierarchy of groups by chaining multiple fields together and whatever a user selects will stay during their SalesLogix session. The plugin Opportunity:Sales Process is the sales process tab in the opportunity screen and you can open it up to play around with.

The plugin includes SALESORDER as the default in the group panel because whatever is defined at design time is what sticks. I believe you can set the groups at runtime by altering a column's groupindex property because there is some code in the Sales Process plugin that hints to the behavior (if Column.GroupIndex >= 0). I'm just guessing but I believe every normal column has a groupindex of -1 and any column that belongs in the group panel has a groupindex of 0 or greater, indicating their place in the chain.

If this is too much or I'm not explaining it right let me know. It makes sense in my head but I don't feel I'm explaining it easily.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Grouped rows in DataGridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 2:09 PM
fiogf49gjkf0d
The Column object has a GroupIndex property. You set this index to a numeric value to indicate the levels of grouping. If you have a grid (bound to Accounts for example) and you want to group on a field called "Type" then you would get a reference to to the Type field and set it's GroupIndex to 0 (to be the first grouping level). If you then wanted to further group the data by state, you'd get that column and set it to GroupIndex=1 and so on.

You can optionally show or hide the grouping panel as well and still have columns grouped (without the group panel showing)
[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/22/2024 7:55:29 PM