protected override void SetRowFormat(DataGridViewRow row)
        {
            if (row.IsNewRow)
            {
                return;
            }
            FaltaAlumnoInfo item = (FaltaAlumnoInfo)row.DataBoundItem;

            if (item.Porcentaje >= 15)
            {
                row.DefaultCellStyle = BloqueadoStyle;
            }
            else
            {
                if (item.Porcentaje >= 10)
                {
                    row.DefaultCellStyle = ApercibimientoStyle;
                }
                else
                {
                    if (item.Porcentaje >= 5)
                    {
                        row.DefaultCellStyle = FaltaStyle;
                    }
                }
            }
        }
 protected override void SetUnlinkedGridValues(string gridName)
 {
     switch (gridName)
     {
     case "Alumnos_Grid":
     {
         foreach (DataGridViewRow row in Alumnos_Grid.Rows)
         {
             if (row.IsNewRow)
             {
                 continue;
             }
             FaltaAlumnoInfo info = (FaltaAlumnoInfo)row.DataBoundItem;
             if (info != null)
             {
                 if (info.Porcentaje >= 15)
                 {
                     row.DefaultCellStyle.BackColor = Color.LightCoral;
                 }
                 else
                 {
                     if (info.Porcentaje >= 10)
                     {
                         row.DefaultCellStyle.BackColor = Color.LightSalmon;
                     }
                     else
                     {
                         if (info.Porcentaje >= 5)
                         {
                             row.DefaultCellStyle.BackColor = Color.LightBlue;
                         }
                     }
                 }
             }
         }
     } break;
     }
 }
 protected override void GetFormSourceData()
 {
     _alumnos = FaltaAlumnoInfo.GetEstadisticasFaltasAlumnos();
 }