Friends, good night. I'm having trouble handling the data in a datagridview, I need to assign the value of the cell to the first column of the row the user selected when the user clicks the row.
Then I created an Event of type SelectionChanged, within that event it includes:
private void clik_table_cliente(object sender, EventArgs e)
{
// vamos obter a linha da célula selecionada
DataGridViewRow linhaAtual = dataGridView1.CurrentRow;
// vamos exibir o índice da linha atual
int indice = linhaAtual.Index;
MessageBox.Show("O índice da linha atual é: " + indice);
}
I can know which line is selected, but now how do I assign the value of the cell in the first column of this line?
Thanks for the help.