private void Rejected_Attendance_Click(object sender, RoutedEventArgs e) { try { dgAttendance.DataContext = attendanceBLL.LoadGridRejectedAttendanceBLL(LoginEntity.UserID); } catch (Exception ex) { Console.WriteLine(ex.Message); } }