C1DataGrid for WPF使用技巧五:绑定TimeSpan属性

如果你有一个TimeSpan属性从类中暴露出来,你需要绑定C1DataGrid到对象集合,自动生成不能编辑的TimeSpan列。使用DataGridDateTimeColumn并不适合这种场景,因为DataGridDateTimeColumn列的类型和TimeSpan有所区别。以上是一种场景,虽然简单,但也很容易。