Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Time Field and DateTimeEditorProvider
posted

Hello all,

I am newbie on using infragistics 2011 and I am having some dificulties in setting up a DateTiemEditorProvider to edit a time field which is in a SQL 2008R2 database.

I get an error which says that the Editor cannot be used with the field data type. I have tried to change the datatype on the WebDataGrid to Char and use a InputMask editor but I get the same error.

can someone point me to the right direction on how to accomplish this?

 

regards,

adasilva

Parents
  • 20
    posted

    hello adasilva,

    If your data is not in datetime format then cast it as datetime and bind it to grid

    eg. output should be like 2011-06-30 01:00:00

    For  DateTimeEditorProvider

    set  following properties to display and edit data in format 01:00

    DisplayModeFormat="HH:mm" EditModeFormat="HH:mm"

    If you want to display data in format 01.00 then set following porperties

    DisplayModeFormat="HH.mm" EditModeFormat="HH.mm"

    If u r having problem please ask again

    Thanks

    sandip jadhav

     

     

     

     

     

     

Reply Children