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
896
Editable field with DatePicker
posted

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

Parents
No Data
Reply
  • 69686
    posted

    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.

     

Children