Copy and paste: select the date and time on the silverlight grid. The copy and paste date changes.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.