private void UpdateNavBarName() { List <bool> ActivedList = new List <bool>(); List <bool> BlockedList = new List <bool>(); for (int i = 0; i < GridView.VisibleRowCount; i++) { ActivedList.Add((bool)GridView.GetRowValues(i, "Actived")); BlockedList.Add((bool)GridView.GetRowValues(i, "Blocked")); } GridView.JSProperties["cpActived"] = ActivedList; GridView.JSProperties["cpBlocked"] = BlockedList; HttpContext.Current.Session["isActBloChanged_Com"] = false; GridView.JSProperties["cpAllCount"] = StatusProvider.Count(x => true); GridView.JSProperties["cpInActivedUnBlockedCount"] = StatusProvider.Count(x => x.Actived == false && x.Blocked == false); GridView.JSProperties["cpActivedBlockedCount"] = StatusProvider.Count(x => x.Actived == true && x.Blocked == true); GridView.JSProperties["cpInactivedBlockedCount"] = StatusProvider.Count(x => x.Actived == false && x.Blocked == true); GridView.JSProperties["cpActivedUnBlockedCount"] = StatusProvider.Count(x => x.Actived == true && x.Blocked == false); GridView.JSProperties["cpUpdatedByCount"] = StatusProvider.Count(x => x.CreatedBy == User.Identity.Name || x.UpdatedBy == User.Identity.Name); }