LastDateOfGroup Property

Returns a Nullable that represents the last date of the group. Note, this will not be the last date displayed within the group if the group displays trailing days.
Public ReadOnly Property LastDateOfGroup As Nullable(Of Date)
public Nullable<DateTime> LastDateOfGroup {get;}

The FirstDateOfGroup and LastDateOfGroup identify the range of dates that make up the group. These dates do not include any dates that would represent leading or trailing items. The values are calculated based on the ReferenceDate, ReferenceGroupOffset and the CurrentCalendarMode.

The property is nullable because it is possible that the group will not be able to display any dates. For example, if the MinDate and MaxDate were such that you could only see a year, if the CalendarDimensions was 2,2 so that the control displayed 4 groups, not all the groups would be able to display items when you start zooming out.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also