Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:19:55+00:00 2026-06-15T11:19:55+00:00

I have a Silverlight Datagrid in which one of the columns is a Date

  • 0

I have a Silverlight Datagrid in which one of the columns is a Date Column.

So i have used a DataTemplateColumn as Follows

 <sdk:DataGridTemplateColumn   Header="Recieved Date" Width="Auto">
                        <sdk:DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Path=RecievedDate, StringFormat='MM/dd/yyyy'}" />
                            </DataTemplate>
                        </sdk:DataGridTemplateColumn.CellTemplate>
                        <sdk:DataGridTemplateColumn.CellEditingTemplate>
                            <DataTemplate>
                                <sdk:DatePicker Name="dtpFinancialAndComplianceLog" Text="{Binding Path=RecievedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                            </DataTemplate>
                        </sdk:DataGridTemplateColumn.CellEditingTemplate>
                    </sdk:DataGridTemplateColumn>

The problem is when i click on the DatePicker control the default date is set to 1/1/0001?

How can i set my datepicker to set to the current Date in Edit mode ?

I tried DisplayDateStart=”{x:Static sys:DateTime.Now}” . But thats not working as Static only works works with WPF and doesnt work with Silverlight .

What would be the best way to set my datepicker to set to the current Date upon editing ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:19:56+00:00Added an answer on June 15, 2026 at 11:19 am

    (from comments above to OP)

    If you omit DisplayDate doesn’t the Silverlight datepicker default to today’s date?

    Also, if you always want to start with todays date, you could try updating the direction of your binding to OneWay (i.e. no need for any binding code to try to set what starts off in the box)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight DataGrid that contains a single template column which displays a
I'm writing Silverlight application and I have a datagrid in which first two columns'
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I have a simple Silverlight app which simply sets a DataGrid's ItemsSource to the
I have a simple Silverlight 5 datagrid bound to a ObservableCollection of objects: <sdk:DataGrid
I have a Silverlight app with a DataGrid containing some custom columns and all
I have some 6 columns in Silverlight 4 Datagrid. On each cell in the
I have a silverlight datagrid which is bound to a PagedCollectionView displaying a collection
I have a Silverlight 5 Datagrid that has a checkbox in the first column.
I have found that datagrid columns can be dynamically created and bound in Silverlight.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.