Hello, how are you? I have a method that is working well for me but it's not really what I expect.
private void dgFleteros_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
DataGridViewRow row = dgFleteros.CurrentRow;
tbNombre.Text = Convert.ToString(row.Cells[1].Value);
tbVehiculo.Text = Convert.ToString(row.Cells[3].Value);
}
This works when the user clicks on the grid, but what I need is to show me the data of the cell that is currently selected, without having to click.
Thank you very much in advance
Sorry for not clarifying, it is a windows form application in visual studio and c #