title: Error : No overload for method "ToString" takes 1 arguments
body: <p>I want to insert all DataGridView rows to Database.
  I faced this error</p>
  <blockquote>
  <p>No overload for method &quot;ToString&quot; takes 1 arguments.</p>
  </blockquote>
  <pre><code> for (int i = 0; i &lt; TimesDgv.Rows.Count - 1; i++)
   {
        OleDbCommand cmd = new OleDbCommand(&quot;Insert into TimesTBL(PeriodName,TimeFrom,TimeTo,Duration) values (@PeriodName,@TimeFrom,@TimeTo,@Duration)&quot;, con);
        cmd.Parameters.AddWithValue(&quot;PeriodName&quot;, TimesDgv.Rows[i].Cells[0].Value);
        cmd.Parameters.AddWithValue(&quot;TimeFrom&quot;, TimesDgv.Rows[i].Cells[1].Value.ToString(&quot;hh:mm&quot;));
        cmd.Parameters.AddWithValue(&quot;TimeTo&quot;, TimesDgv.Rows[i].Cells[2].Value.ToString(&quot;hh:mm&quot;));
        cmd.Parameters.AddWithValue(&quot;Duration&quot;, TimesDgv.Rows[i].Cells[3].Value);
        con.Open();
        cmd.ExecuteNonQuery();
        con.Close();
        cmd = null;
    }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/BsbOu.jpg" rel="nofollow noreferrer">enter image description here</a></p>