private void BindClubHistory() { if (history == null) { if (ClubID > 0) { history = ClubLogic.GetClubHistory(ClubID); } else { history = ClubLogic.GetClubHistory(); } foreach (var ch in history) { var actionType = (ClubHistoryActionType)Enum.Parse(typeof(ClubHistoryActionType), ch.ActionType); switch (actionType) { case ClubHistoryActionType.JoinClub: ch.AdditionalData = "ClubSys_Agree"; break; case ClubHistoryActionType.RejectJoinClub: ch.AdditionalData = "ClubSys_Disagree"; break; case ClubHistoryActionType.LeaveClub: ch.AdditionalData = "ClubSys_Disagree"; break; case ClubHistoryActionType.MandatoryLeaveClub: ch.AdditionalData = "ClubSys_Disagree"; break; case ClubHistoryActionType.Nominated: ch.AdditionalData = "ClubSys_Agree"; break; case ClubHistoryActionType.Dismiss: ch.AdditionalData = "ClubSys_Disagree"; break; case ClubHistoryActionType.LuckyPlayer: ch.AdditionalData = "ClubSys_Disagree"; break; default: ch.AdditionalData = "ClubSys_Agree"; break; } ch.AdditionalData2 = ClubLogic.TranslateClubHistoryActionType(actionType); } } gvHistory.DataSource = history; gvHistory.DataBind(); }