11/22/2024 7:51:13 PM
|
|
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.
|
|
|
|
Grouped rows in DataGrid
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? |
|
|
|
Re: Grouped rows in DataGrid
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. |
|
|
|
Re: Grouped rows in DataGrid
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) |
|
|
|
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!
|
|
|
|
|
|
|
|