for (int i = 0; i < dgvCategory.Rows.Count; i++) { StrQuery = @"INSERT INTO CategorynA VALUES ('" + this.txtCategory.Text + "', '" + dgvCategory.Rows[i].Cells["clmActivity"].Value + "');"; comm.CommandText = StrQuery; conn.Open(); comm.ExecuteNonQuery(); conn.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)