title: DataGridView In C# to select data and show it to one textbox
body: <p>I am working on a windows form application, I have made datagridview for showing my data but I also want to select some specific columns from Datagridview and show them to only one TextBox.</p>
  
  <p>I have tried but it is only getting last Column named "SEIKEN_NO" to textbox but I want multiple column values to show in One TextBox.</p>
  
  <pre><code>private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
      {
          // to set oem no, fic_no and seiken_no to textbox named particular1Txt.
  
          dataGridView1.Refresh();
  
          try
          {
              if (RB1.Checked == true)
              {
                  int i;
                  i = dataGridView1.SelectedCells[0].RowIndex;
  
                  Particular1Txt.Text = dataGridView1.Rows[i].Cells["FIC_No"].Value.ToString();
                  Particular1Txt.Text = dataGridView1.Rows[i].Cells["OEM_No"].Value.ToString();
                  Particular1Txt.Text = dataGridView1.Rows[i].Cells["Seiken_NO"].Value.ToString();
              }
              else if (RB2.Checked == true)
              {
                  int i;
                  i = dataGridView1.SelectedCells[0].RowIndex;
                  Particular2Txt.Text = dataGridView1.Rows[i].Cells["FIC_No"].Value.ToString();
                  Particular2Txt.Text = dataGridView1.Rows[i].Cells["OEM_No"].Value.ToString();
                  Particular2Txt.Text = dataGridView1.Rows[i].Cells["Seiken_NO"].Value.ToString();
              }
  </code></pre>