今天再用gridcontrol控件显示日期的时候,发现只显示年月日,不显示时分秒。
随便一种皆可
根据个人业务做适当修改
gridView1.Columns[3].DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";