title: How to save DataGridView multiple row data in to MySQL database in c#
body: <p>I have multiple row data in a single column. I need to save all data in to a MySQL DB. But it's only saving selected rows data only in DataGridView. </p>
  
  <p>Below is my sample code. </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      string price = dataGridView1[3, dataGridView1.CurrentCell.RowIndex].Value.ToString();
  
      string Query = "INSERT INTO db1.table1 (price) VALUES ('"+ price +"');";
  
  
      MySqlConnection myConn = new MySqlConnection(MySQLConn);
      MySqlCommand MySQLcmd = new MySqlCommand(Query, myConn);
      MySqlDataReader myReader;
      try
      {
          myConn.Open();
          myReader = MySQLcmd.ExecuteReader();
          while (myReader.Read())
          {
  
          }
      }
      catch (Exception ex)
      {
          MessageBox.Show(ex.Message);
      }
  }
  </code></pre>
  
  <p>Appreciate any help 
  Thank you! </p>