Home Forums WinForms controls Xceed Grid for WinForms Grid 3 time display Reply To: Grid 3 time display

User (Old forums)
Member
Post count: 23064

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)