title: How to change column order of Data & Time picker Column in DataGridView
body: <p>Question: As you know that framework doesnot allow datetime picker in datagridview. i want to change the order of date and time currently i am using a method AdjustColumnOrder() but it is just changing the order of predefined columns.  exception code is commented.  </p>
  
  <pre><code>  private void AdjustColumnOrder()
              {
                  metroGrid1.Columns["Column1"].DisplayIndex = 0;
                 // metroGrid1.Columns["fromDate"].DisplayIndex = 1;
                 // metroGrid1.Columns["toDate"].DisplayIndex = 2;
                  metroGrid1.Columns["Column6"].DisplayIndex = 3;
                  metroGrid1.Columns["Column5"].DisplayIndex = 4;
              }
  </code></pre>