flatDataSource.Columns = DataSourceBase.GenerateInitialItems("[Date]");
.
HierarchyDescriptor dateTimeDescriptor =
new HierarchyDescriptor
{
AppliesToPropertiesOfType = typeof(DateTime)
};
dateTimeDescriptor.AddLevel(date => "All Dates", "All Values");
dateTimeDescriptor.AddLevel(date => date.Year, "Years");
dateTimeDescriptor.AddLevel(date => date.Date, "Members");