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
405
Display time with frames on the Grid
posted

Hi,

I have an ultrawingrid that is bound to a binding list of objects. I have a column that is bound to a datetime property which should allow users to enter durations in hours, mins, secs and frames. 

I am using the following code for an ultramaskededit-

Dim edRunTime As Infragistics.Win.UltraWinMaskedEdit.UltraMaskedEdit = New Infragistics.Win.UltraWinMaskedEdit.UltraMaskedEdit()
edRunTime.InputMask = "hh:mm:ss.##"
edRunTime.EditAs = UltraWinMaskedEdit.EditAsType.UseSpecifiedMask
edRunTime.PadChar = "0"
edRunTime.Enabled = True
edRunTime.DisplayMode = UltraWinMaskedEdit.MaskMode.IncludeLiteralsWithPadding
edRunTime.DataMode = UltraWinMaskedEdit.MaskMode.IncludeLiteralsWithPadding
edRunTime.ClipMode = UltraWinMaskedEdit.MaskMode.IncludeLiteralsWithPadding

And setting the mask to the column using the following code-

timeCodeIn.Format = "HH:mm:ss.ff"
timeCodeIn.Style = UltraWinGrid.ColumnStyle.Edit

timeCodeIn.EditorComponent = edRunTime
timeCodeIn.UseEditorMaskSettings = True

When I enter any value in the cell, eg: 00:00:10.20 and exit the cell, the cell's display changes to 00:00:10.00. When I click back into the cell and it goes into edit mode I can see the correct value.

The above code works fine when the column is of type string, but not when the column is of type datetime.

Any idea how i can get this to work for a date time column???

Parents
No Data
Reply
  • 6120
    Offline posted

    Hi Karthik,

    We answered your question here, please use the below forum post for your future follow-ups regarding this issue.
    http://es.infragistics.com/community/forums/t/105131.aspx

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer, Windows Forms
    http://es.infragistics.com/

Children
No Data