private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
this.label1.Text = this.dataGridView1.SelectedCells[0].Value.ToString();
}
private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
for (int i = 0; i < this.dataGridView1.SelectedRows[0].Cells.Count; i++)
{
this.label1.Text += this.dataGridView1.SelectedRows[0].Cells[i].Value.ToString();
}
}