title: How to format DateTime columns in DataGridView?
body: <p>I'm using a DataGridView with object data binding to display information about logging entities in a system, retrieved via SOAP from a remote service.
  One of the columns is called "Last action" and means the last time the entity logged a message. It is a <code>System.DateTime</code> value. When I read the SOAP response (example below), he timestamp obviously contains all the information, up to second fractions.</p>
  
  <pre><code>&lt;LoggingEntity&gt;
  &lt;host&gt;marty86ce&lt;/host&gt;
  &lt;process&gt;10148&lt;/process&gt;
  &lt;logger&gt;http_core&lt;/logger&gt;
  &lt;appName&gt;httpd&lt;/appName&gt;
  &lt;ffda&gt;true&lt;/ffda&gt;
  &lt;lastAction&gt;2010-10-27T12:00:19.5117509Z&lt;/lastAction&gt;
  &lt;lastHeartbeat&gt;0001-01-01T00:00:00&lt;/lastHeartbeat&gt;
  &lt;channelId&gt;em_9BA2A2B4D0B6E66&lt;/channelId&gt;
  &lt;ffdaChannelId&gt;em_E7C8D1D4DE8EEB9&lt;/ffdaChannelId&gt;
  &lt;/LoggingEntity&gt;
  </code></pre>
  
  <p>When I display it on the table, I instead can read up to the minutes
  <img src="https://i.stack.imgur.com/dLYBz.png" alt="http://i.stack.imgur.com/dLYBz.png">
  I use the following code to do the data binding when I press the refresh button</p>
  
  <pre><code>public void RefreshEntities()
  {
      IEntityManagement management = EntityPlugin.GetProxy();
      LoggingEntity[] result = management.FindLoggingEntities(new TemplateQuery { ffdaSpecified = true, ffda = true }); //Remote invocation
  
      Invoke(new MethodInvoker(delegate { gridEntities.DataSource = result; })); //THIS does the data binding from the array
  
      Invoke(new MethodInvoker(delegate { btnRefresh.Enabled = true; }));
  }
  </code></pre>
  
  <p>I would like to know how to control column formatting of data bound values. I think that the format dd/MM/yyyy hh:mm comes from my system's settings. <strong>How to override formatting settings programmatically?</strong></p>
  
  <p>Thank you in advance</p>
  
  <p>Full solution code on <a href="http://logbus-ng.svn.sourceforge.net/viewvc/logbus-ng/trunk/" rel="noreferrer">Subversion</a> (FFDAGui program) for the Logbus-ng open source project.</p>