We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TimeSpanColumn not editing

Hello,
I'm trying to get the TimeSpanColumn to work.  
According to the docs, the TimeSpanColumn displays as a string, and edits as a TimeSpanEdit control.  
I cannot seem to get this to work. The cell does not seem to allow editing.

xaml is as follows:

    <syncfusion:SfDataGrid
        Name="sfdgDelegates"
        ItemsSource="{Binding Delegates}"
        AutoGenerateColumns="False" 
        SelectionMode="Single" 
        SelectionUnit="Row"
        AllowEditing="True"
        AllowDeleting="True"
        >

        <syncfusion:SfDataGrid.Columns>

            <syncfusion:GridTextColumn MappingName="Status" />

            <syncfusion:GridTextColumn MappingName="Name" />

            <syncfusion:GridTimeSpanColumn MappingName="RunTime" />

        </syncfusion:SfDataGrid.Columns>

    </syncfusion:SfDataGrid>

4 Replies

TO Towerful February 23, 2016 02:16 PM UTC

I have found the solution.  
The Property was public get, private set.

I feel a bit silly. 

:)


AP Ashwini Paranthaman Syncfusion Team February 24, 2016 08:56 AM UTC

Hi Andrew,
We are glad that your issue has been fixed.
Please let us know if you need any other assistance.
Regards,
Ashwini P.


RE red November 25, 2018 05:03 PM UTC

Is there <syncfusion:GridTimeSpanColumn ....... in UWP .
IF so can you provide an example 
IF not there is a workaround to it ?


DY Deivaselvan Y Syncfusion Team November 27, 2018 03:42 AM UTC

Hi Red, 
 
Thanks for contacting Syncfusion support. 

SfDataGrid doesn’t have direct support for TimeSpan column in UWP. You can achieve this by creating custom column and cell renderer. Please refer to the following UG to create custom cell renderer and custom column using TimePicker. 


Please let us know if the provided solution doesn’t meet your requirement. 

Regards, 
Deivaselvan 


Loader.
Up arrow icon