This article mainly describes the C # DevExpress Gridcontrol Date Line display format settings, the need for friends can refer to the following
As shown, the date is displayed as "MM DD Day", or in other formats, such as displaying the year, month, day, or date with time, set as follows:
1, if set, date is D, time is T:
2, in the event of the following wording:
private void Bandedgridview1_customcolumndisplaytext (object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { //date display format PQF31. displayformat.formatstring = "MM month DD Day"; PQF31. displayformat.formatstring = "Yy-mm-dd tt:hh"; }
Set DevExpress Gridcontrol control Time column display hours, minutes, seconds style
Title, if the dev Gridcontrol control is bound to a DataTable data source, when a column in the DataTable is of type date, the default display style of Gridcontrol displays only the current date and does not display the time, minute, and second.
Solution:
Set the display style,
Setup is complete, display the results show,