Hi,
I have an editable DateTime column in UltraWinGrid and it displays the value in hh:mm:ss.ff format.
When the cell is in active(edit mode) it displays the entire value correctly like 00:00:29.17 but as soon as if some other cell is clicked it displays 00:00:29.00
Again if we click the previous cell again then in the edit mode it shows entire value 00:00:29.17
Is there any property which is needed to be set.
Thanks,
Chitra
Hello Chitra,
Thank you for posting in our forum.
The issue you are facing is actually expected behavior. The cell uses UltraDateTimeEditor when it enters in edit mode in order to display the cell’s value. To format the way the values are shown to the end user the editor uses MaskInput property. However Infragistics editors does not support displaying of parts of the second when the value is of DateTime type. So you can use HH:mm:ss.ff as format string for the column’s cells but you cannot use the same format for the editor. One possible solution here is to implement IEditorDataFilter interface and try to parse the values by yourselves. More about this interface you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/WinGrid_Using_the_IEditorDataFilter_Interface_with_WinGrid.html.
Please let me know if you need any additional information.
Thank you for using Infragistics Components.
Just to add, following property are set in InitializeLayout() event for the column
With .Columns.Item("offset_inpoint")
.Header.Caption = "Inpoint"
.Header.Appearance.TextHAlign = HAlign.Center
.Header.VisiblePosition = 4
.CellAppearance.TextHAlign = HAlign.Center
.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit
.MaxLength = 90
.MaskDataMode = UltraWinMaskedEdit.MaskMode.IncludeLiterals
.MaskDisplayMode = UltraWinMaskedEdit.MaskMode.IncludeLiterals
.MaskClipMode = UltraWinMaskedEdit.MaskMode.IncludeLiterals
.MaskInput = "hh:mm:ss.##"
.Format = "HH:mm:ss.ff"
.CellActivation = Activation.AllowEdit
End With