Beispiel #1
0
 private void CheckRightData(StudentAppointClass roleRight)
 {
     foreach (AppointClass stu in _list)
     {
         if (stu.AppointClassID == roleRight.AppointClassID)
         {
             stu.Choose = true;
         }
     }
 }
        void gv_AppointClass_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            this.CurrentClass = (StudentAppointClass)gv_AppointClass.GetFocusedRow();
            if (CurrentClass != null)
            {
                CoachList            = new CoachDao().GetList_ClassID(CurrentClass.AppointClassID, State);
                gc_Coatch.DataSource = null;
                gc_Coatch.DataSource = CoachList;
                gc_Coatch.RefreshDataSource();
                if (txt_date.EditValue != null)
                {
                }
            }

            // gv_AppointClass.FocusedColumn.AppearanceCell.ForeColor = Color.Red;
        }