private void gridClaseVehi_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { var id = getID(); var claseVeh = CClaseDeVehiculo.GetClaseDeVehiculo(id); txtNombClaseVehi.Text = claseVeh.Descripcion; }
private void gridClaseVehi_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e) { if (e.StateChanged != DataGridViewElementStates.Selected) { return; } var id = getID(); var claseVeh = CClaseDeVehiculo.GetClaseDeVehiculo(id); txtNombClaseVehi.Text = claseVeh.Descripcion; }