I have a RadGrid that has a date column in it. I am trying to display the date in UK format, i.e. dd/MM/yyyy. I have tried using DataFormatString="{0:dd/MM/yyyy}" in the data bound column, with no joy. If anyone could please point me in the right direction. I would much appreciate it.
<telerik:RadGrid ID="rgPhoneMessages" Width="100%" runat="server" GridLines="None" AllowPaging="false"
PagerStyle-AlwaysVisible="false" PagerStyle-Visible="false" OnItemCommand="rgPhoneMessages_ItemCommand"
AllowSorting="True" >
<ClientSettings EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true" >
<Scrolling AllowScroll="false" EnableVirtualScrollPaging="false" UseStaticHeaders="true" SaveScrollPosition="true"></Scrolling>
</ClientSettings>
<MasterTableView AutoGenerateColumns="false" DataKeyNames="ID">
<Columns>
<telerik:GridBoundColumn HeaderText="ID" Visible="false"
ItemStyle-Height="45px" DataField="ID"
UniqueName= "ID" Display="True"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Date" meta:ResourceKey="hdrDate" ItemStyle-Height="45px"
UniqueName= "Date" Display="True" SortExpression="Date" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Caller" meta:ResourceKey="hdrCaller" ItemStyle-Height="45px"
UniqueName= "Caller" Display="True"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Phone" meta:ResourceKey="hdrPhone" ItemStyle-Height="45px"
UniqueName= "Phone" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Mode" meta:ResourceKey="hdrMode" ItemStyle-Height="45px"
UniqueName= "Mode" Display="True"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<telerik:RadGrid ID="rgPhoneMessages" Width="100%" runat="server" GridLines="None" AllowPaging="false"
PagerStyle-AlwaysVisible="false" PagerStyle-Visible="false" OnItemCommand="rgPhoneMessages_ItemCommand"
AllowSorting="True" >
<ClientSettings EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true" >
<Scrolling AllowScroll="false" EnableVirtualScrollPaging="false" UseStaticHeaders="true" SaveScrollPosition="true"></Scrolling>
</ClientSettings>
<MasterTableView AutoGenerateColumns="false" DataKeyNames="ID">
<Columns>
<telerik:GridBoundColumn HeaderText="ID" Visible="false"
ItemStyle-Height="45px" DataField="ID"
UniqueName= "ID" Display="True"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Date" meta:ResourceKey="hdrDate" ItemStyle-Height="45px"
UniqueName= "Date" Display="True" SortExpression="Date" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="false" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Caller" meta:ResourceKey="hdrCaller" ItemStyle-Height="45px"
UniqueName= "Caller" Display="True"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Phone" meta:ResourceKey="hdrPhone" ItemStyle-Height="45px"
UniqueName= "Phone" Display="False"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Mode" meta:ResourceKey="hdrMode" ItemStyle-Height="45px"
UniqueName= "Mode" Display="True"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>