int rowindex = dataGridView1.CurrentCell.RowIndex; int columnindex = dataGridView1.CurrentCell.ColumnIndex; dataGridView1.Rows[rowindex].Cells[columnindex].Value.ToString();