Detectando clique na DataGridView

<< Click to Display Table of Contents >>

Navigation:  Desktop > DataGridView >

Detectando clique na DataGridView

Previous pageReturn to chapter overviewNext page

        private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            this.Text = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
        }