Use a View's IDocumentGroupProperties.MaxDocuments property to specify the maximum number of documents in document groups. This setting is applied to all document groups by default. The MaxDocuments property allows you to override the IDocumentGroupProperties.MaxDocuments property for the current document group. To override the default setting, set the MaxDocuments property to any integer value (not null).
The ActualMaxDocuments property returns the actual maximum number of documents in the current document group, based on a View's IDocumentGroupProperties.MaxDocuments and the current group's MaxDocuments properties.
If the ActualMaxDocuments value returns 0, the number of documents in the current document group is not limited.