← Back to all blogs

Posts tagged with 'c1-wpf-c1datagrid'

Binding TimeSpan Property in DataGrid (WPF & SL)

If you have a TimeSpan property exposed on your class and if you bind C1DataGrid to the collection of that class objects, the auto-generated TimeSpan column won't be editable. Using a DataGridDateTimeColumn will not fix the issue because the type of objects that DataGridDateTimeColumn expects(DateTime)  is a bit different from TimeSpan.