Home Forums WinForms controls Xceed Grid for WinForms Grid 3 time display

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14336 |

    I have DateTime column. I want to display it as time only and alsocan edit it as time in
    format 23:23. How to do that.
    Thanks

    Imported from legacy forums. Posted by konrad (had 1882 views)

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.