I have a GridTemplateColumn that I (finally) got the grouping to work how I want it to. However -- since this data is really a DateTime, it's showing up as "Loan Period: 01/01/2009 12:00:00 AM" instead of "Loan Period: 01/01/2009". How can I format ({0:d}) the group text?
All of the DateTime objects are gaurenteed to have the same time (12:00:00 AM). I kept everything as DateTIme objects instead of strings to ensure the correct sorting of the column.
Thanks!
<telerik:GridTemplateColumn HeaderText="Loan Period" Groupable="true" DataField="BwrLoanStart" |
SortExpression="BwrLoanStart" UniqueName="LoanPeriod" AllowFiltering="false" GroupByExpression="BwrLoanStart Group By BwrLoanStart"> |
<ItemTemplate> |
<%# utils.removeEmptyDash(string.Format("{0:d} - {1:d}",Eval("BwrLoanStart"), Eval("BwrLoanEnd"))) %> |
</ItemTemplate> |
<ItemStyle CssClass="certcolpadding" /> |
</telerik:GridTemplateColumn> |
Thanks!