This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, I am just wondering if there is a way to collapse all rows when using column grouping like in the attached image? So when we have too many records we can easily to go to that record and expand it. Thanks, Gordon |
|
|
Hi Gordon, Currently there isn't an option to collapse the groups in code, other than iterating the DataGrid.DisplayedItemsSource collection and setting IsExpanded to false on the Group object within DataGridGroupingRow instances. I might be able to add an easier option to do this next week. -Jason Fauchelle |
|
|
thanks, Jason |
|
|
Hi Gordon, I've added ExpandAllGroups and CollapseAllGroups methods to the DataGrid to help you out here. These will be available in the next nightly build. Let me know if you have further questions. -Jason Fauchelle |
|
|
Hi Jason, I downloaded Dec. 2, 2015 nightly build, these 2 newly added functions worked. Thanks, Gordon |
|