Home › Forums › WinForms controls › Xceed Grid for WinForms › Grid 3 time display
I have DateTime column. I want to display it as time only and alsocan edit it as time informat 23:23. How to do that.Thanks
Imported from legacy forums. Posted by konrad (had 1882 views)
Only scanned over your Q
To display as time using regional settings say for column 0 (This being a DateTime Column)
gridControl1.Columns[0].FormatProvider = System.Globalization.DateTimeFormatInfo.CurrentInfo;gridControl1.Columns[0].FormatSpecifier = “t”;
Check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationDateTimeFormatInfoClassTopic.asp for FormatSpecifier details
Think you could use say “HH:mm” as your FormatSpecifier
Imported from legacy forums. Posted by g.kroger (had 2982 views)