title: Binding TimeSpan to a DataGridView column
body: <p>Is there an easy way to show a formatted string representing a <code>TimeSpan</code> field in a <code>DataGridViewTextBoxColumn</code> of a <code>DataGridView</code>?</p>
  
  <p>I have an array of custom objects (returned by a web service) that I'm binding to my datagrid. These object have a <code>TimeSpan</code> property. When I bind this property to the column of the datagrid I obtain the object name (something like <em>MyApplication.MyClass.TimeSpan</em>) and not the timespan string.</p>
  
  <p>How can I solve?</p>
  
  <p><strong>NOTE:</strong>
  At last I discovered my problem is that I get my array of objects <strong>from a web service</strong>.
  It seems that <code>TimeSpan</code> type cannot be xml-serialized, so the system class is <em>re-classed</em> into a custom object:</p>
  
  <ul>
  <li><p><a href="https://connect.microsoft.com/VisualStudio/feedback/details/94492/timestamp-class-should-be-xml-serializable" rel="nofollow">https://connect.microsoft.com/VisualStudio/feedback/details/94492/timestamp-class-should-be-xml-serializable</a></p></li>
  <li><p><a href="http://forums.silverlight.net/t/51793.aspx" rel="nofollow">http://forums.silverlight.net/t/51793.aspx</a></p></li>
  </ul>