private void ActualizarDGTurnos() { try { Turnos.Clear(); var Empleadosturnos = from turno in Enturno join persona in Personal on turno.VP_IdPersonal equals persona.VP_IdPersonal orderby turno.Fecha ascending select new { persona.VP_IdPersonal, Nombre = persona.Nombres.Substring(0, 3).ToUpper() + persona.Apellidos.Substring(0, 3).ToUpper() }; foreach (var turno in Empleadosturnos) { Turnos.Rows.Add(turno.Nombre, turno.VP_IdPersonal); } DGTurnos.DataSource = Turnos.DefaultView; DGTurnos.Columns[1].Visible = false; DGTurnos.ClearSelection(); } catch (Exception ex) { //Entrada de LOG Clases.P_LogWriter objLog = new Clases.P_LogWriter("ValetParking - ActualizarDGTurnos " + ex.ToString()); } }
//Limpia selección cuando se carga formulario. private void tLimpiarSeleccion_Tick(object sender, EventArgs e) { DGEntradas.ClearSelection(); DGEstacionados.ClearSelection(); DGSalidas.ClearSelection(); DGTurnos.ClearSelection(); tLimpiarSeleccion.Enabled = false; }
private void DGTURNOS_CellClick(object sender, DataGridViewCellEventArgs e) { DGTurnos.ClearSelection(); }