Hi
I am new to the XamDataGrid(using the trial version) and i would like to know how to use a datepicker control(or a XamDateTimeEditor maybe..) within a cell when it is being edited.
Thanks in advance
Hello,
The XamDataTimeEditor is the default editor for a cell, if its value is of type DateTime. If you bind the grid to a source, which has DateTime values, XamDateTimeEditor will automatically appear in the cell. Another way to do this is to set the EditorType to XamDateTimeEditor in the settings of the Field like this:
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
<igDP:Field.Settings>
<igDP:FieldSettings EditorType="{x:Type igEditors:XamDateTimeEditor}">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamDateTimeEditor}">
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
Hope this helps,
Alex.
Hi Alex,
Thanks for the reply but i am still facing some problems.
1.The Property to which the field is bound is of Type Datetime but still the defualt OnEdit behaviour shows up a text box instead of a datetime control
2.I tried explicitly setting the Editor type as u have said and used following namespace for editors 'xmlns:igEditor="http://infragistics.com/Editors" ' but no luck, i am getting a compilation error("Type reference cannot find a public type named XamDateTimeEditor").
And also i did not find (through the object browser) XamDateTimeEditor in the assembly Infragistics.Windows.Editors
Is it an installation problem ? or am i messing it up.
Thanks again
Abhilash