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.UseSpecifiedMaskedRunTime.PadChar = "0"edRunTime.Enabled = TrueedRunTime.DisplayMode = UltraWinMaskedEdit.MaskMode.IncludeLiteralsWithPaddingedRunTime.DataMode = UltraWinMaskedEdit.MaskMode.IncludeLiteralsWithPaddingedRunTime.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 = edRunTimetimeCodeIn.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???
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 KokkalagaddaAssociate Software Developer, Windows Formshttp://es.infragistics.com/