i have a datagridview and a text box, when i click on a cell of datagridview, the value must copy on the text box, but this not always work
olny works sometimes please some help
thnk.
private void gvProductos_CellContentClick(object sender, DataGridViewCellEventArgs e) {
//DataGridViewRow row = new DataGridViewRow();
//row = gvProductos.Rows[e.RowIndex];
////txtDescripcion.Text = string.Empty;
//txtDescripcion.Text = row.Cells[1].Value.ToString();
txtDescripcion.Text = gvProductos.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
}