简体   繁体   中英

add Date control to devexpress silverlight grid

Need to add a date picker to a devexpress Silverlight grid so that the first column of the grid is a datepicker.

Inside the xaml can I drag a date picker and drop it or can I set the gridcolum.editsettings property

Please assign the GridColumn.EditSettings property as follows:

<dxg:GridColumn x:Name="colDate" FieldName="Date"> 
    <dxg:GridColumn.EditSettings> 
        <dxe:DateEditSettings MaskType="DateTime" Mask="dd-MMM-yyyy" MaskUseAsDisplayFormat="True"/> 
    </dxg:GridColumn.EditSettings> 
</dxg:GridColumn> 

Also you can use the GridControl's design-time capabilities: to specify the type of a column's editor and customize its settings, select the column and choose the type of the required editor via the Quick Customization Panel .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM