title: Error"Cannot implicitly convert type 'string' to 'System.Type'
body: <p>I am getting an error for the sorting in the format "dd-mmm-yyyy" it should sort date,month,year wise when binding to grid</p>
  
  <p>"Cannot implicitly convert type 'string' to 'System.Type'"  </p>
  
  <pre><code>DataView dw = PurchaseRequestDetails.Tables[0].DefaultView;
  DateTime NowDate = System.DateTime.Now;
  string NewDate = NowDate.ToString("dd-MMM-yyyy");
  dw.Table.Columns["RequiredDate"].DataType = NewDate.ToString();
  
  dw.Sort = "RequiredDate ASC";
  foreach (DataRowView dr in dw)
  {
      System.Diagnostics.Debug.WriteLine("RequiredDate: " + dr["RequiredDate"].ToString());
  }
  
  dgvPurReq.DataSource = dw;
  dgvPurReq.DataBind();
  </code></pre>