简体   繁体   English

将日期控件添加到devexpress silverlight网格

[英]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. 需要将日期选择器添加到devexpress Silverlight网格中,以便网格的第一列是日期选择器。

Inside the xaml can I drag a date picker and drop it or can I set the gridcolum.editsettings property 我可以在xaml内拖放日期选择器,也可以设置gridcolum.editsettings属性

Please assign the GridColumn.EditSettings property as follows: 请分配GridColumn.EditSettings属性,如下所示:

<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 . 您还可以使用GridControl的设计时功能:指定列编辑器的类型并自定义其设置,选择该列,然后通过“ 快速自定义面板”选择所需编辑器的类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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