A lot depends on how you are binding your data to the grid. If you have
AutoGenerateColumns = False
, it is pretty easy:
<Columns>
<asp:BoundField DataField="DateSent" HeaderText="Date" ReadOnly="true"
HtmlEncode="false" DataFormatString="{0:MM/dd/yyyy}" />
</Columns>
This tells ASP to use the specified format string.
HtmlEncode
needs to turned off for this to work, otherwise ASP can re-interpret your format string in ways leading to undesirable results.
There are other ways you can do this, but this will probably meet your needs.