Copy and paste: select the date and time on the silverlight grid. The copy and paste date changes.
Today, we have a function that requires entering time in the grid. It was originally in a text box, but the customer did not know the format and asked to use the selected format. It seems that silverlight does not have a control that can select time, google's answer to saving the nation is a curve.
1 <sdk: Maid Header = "Start Date"> 2 3 <sdk: maid. cellTemplate> 4 <DataTemplate> 5 <TextBlock Text = "{Binding SellBegin}"/> 6 </DataTemplate> 7 </sdk: DataGridTemplateColumn. cellTemplate> 8 9 <sdk: maid. cellEditingTemplate> 10 <DataTemplate> 11 <my: DatePicker SelectedDate = "{Binding SellBegin}"/> 12 </DataTemplate> 13 </sdk: DataGridTemplateColumn. cellEditingTemplate> 14 15 </sdk: DataGridTemplateColumn>
View Code
The time can be displayed, but the time cannot be selected. You need to manually enter the time part and cannot see it in the editing status. A better way to update the time is found.