private void gridModelo_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { var id = getID(); var parte = CParteVehiculo.getParteId(id); txtNombParte.Text = parte.DESCRIPCION; }
private void gridModelo_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e) { if (e.StateChanged != DataGridViewElementStates.Selected) { return; } var id = getID(); var parte = CParteVehiculo.getParteId(id); txtNombParte.Text = parte.DESCRIPCION; }