من با کد زیر می خواستم اطالاعات موجود در دیتاگرید ویو رو وارد دیتا بیس کنم که خطا زیر رو می ده
ssda.PNG
کدم:

foreach (DataGridViewRow row in dataGridView1.Rows)
{
string constring = @"Data Source=MAMAD;Initial Catalog=dtf;Integrated Security=True";
using (SqlConnection con = new SqlConnection(constring))
{
using (SqlCommand cmd = new SqlCommand("INSERT INTO buy VALUES(@kalaa, @fiiiii, @tedad, @gheymat, @sett, @factor)", con))
{
cmd.Parameters.AddWithValue("@kalaa", row.Cells["kala"].Value);
cmd.Parameters.AddWithValue("@fiiiii", row.Cells["fi"].Value);
cmd.Parameters.AddWithValue("@tedad", row.Cells["tedad"].Value);
cmd.Parameters.AddWithValue("@gheymat", row.Cells["gheymat"].Value);
cmd.Parameters.AddWithValue("@sett", row.Cells["sett"].Value);
cmd.Parameters.AddWithValue("@factor", txtnfactor.Text);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}


}