Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2045
datepicker for text column
posted

I have text column in grid that shows date. I cannot use datecolumn, because sql field set as text. How can I show date picker when user click on cell?

thanks

 

 

  • 40030
    Offline posted

    Hi, 

    You can use a TemplateColumn with a TextBlock in the ItemTemplate and a DatePicker in the editor template. 

    Then you can setup your editing options like so:

    <ig:XamWebGrid.EditingSettings>

                    <ig:EditingSettings AllowEditing="Cell" IsMouseActionEditingEnabled="SingleClick"/>

                </ig:XamWebGrid.EditingSettings>

    -SteveZ

  • 12631
    posted

    You can provide a ValueConverter to the DateColumn to convert the string data into a DateTime value.

     <igGrid:DateColumn Key="PropA" ValueConverter="{StaticResource myStringToDateTimeConverter}" />

    Devin