private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { string cellText = DataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); textBox1.Text = cellText; }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { string cellText = e.RowIndex.ToString()+","+e.ColumnIndex.ToString(); textBox1.Text = cellText; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)