in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How to input time values in gridview (gridview must validate time values)

Last post 11-27-2007 3:28 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-19-2007 5:57 PM

    How to input time values in gridview (gridview must validate time values)

    Hi everyone, I hope you can help me out with this ... I just got a job in a company that uses Componeone and they've asked me to develop an application that requires time values inputs in a gridview and I have no idea how I can do this since they also tell me that I have to input the data directly to the gridview and also this input must be validated.... can you give me a hand PLEASE!!

     Thanks a lot!

     Jesus

  • 11-27-2007 3:28 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: How to input time values in gridview (gridview must validate time values)

    If you are using ComponentOne for .NET 2.0 then you also have a C1 control installed called C1WebDateEdit.  This control can be used to enter dates or times or both.  This control only allows valid date/time input so that level of validation is simple.

    To get this control into a WebGrid you can set up a Template Column.  This is best done in the designer mode through the "Columns" editor.  The C1WebDateEdit control should be placed in the ItemTemplate.  The template column can be bound to a datafield by clicking "Set Databindings" from the ItemTemplate.

    Let me know if you'd like a sample

    Regards,
    Greg L

    Filed under: , ,
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.