使DATAGRID中的日期按smalldatetime格式显示
http://njdg.net/bbs/?u=2517
让DataGrid AutoGenerateColumns=False, 手工添加BoundColumn到DataGrid,控制格式DataFormatString为{0:d}.
<asp:BoundColumn dataformatstring={0:d} DataField="dateTheTable" HeaderText="填报时间">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="10%" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
</asp:BoundColumn>