Hi,
I have a field in my grid containing a DateTime. I'm displaying only the yyyy/mm/dd, but the value behind is also containing the time.
With the Format I have no problem to display the date correctly, but when i'm grouping on this column, the grouping is using the data (With the time) and not the displayed value (yyyy/mm/dd)
So my question is : Can I set the grouping to use the DisplayedValue and not the "real" data?
Here is how I format my column :
.Bound(p => p.CreationDate).Format("{0:" + CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern + "}");
Thanks
I have a field in my grid containing a DateTime. I'm displaying only the yyyy/mm/dd, but the value behind is also containing the time.
With the Format I have no problem to display the date correctly, but when i'm grouping on this column, the grouping is using the data (With the time) and not the displayed value (yyyy/mm/dd)
So my question is : Can I set the grouping to use the DisplayedValue and not the "real" data?
Here is how I format my column :
.Bound(p => p.CreationDate).Format("{0:" + CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern + "}");
Thanks