private void SetCellsNewContext() { if (!OwnerDataRegion.HasDataCells) { return; } IDataRegionRowCollection rowCollection = OwnerDataRegion.RowCollection; if (GetIsColumn()) { for (int i = 0; i < rowCollection.Count; i++) { rowCollection.GetIfExists(i)?.GetIfExists(MemberCellIndex)?.SetNewContext(); } return; } IDataRegionRow ifExists = rowCollection.GetIfExists(MemberCellIndex); if (ifExists != null) { for (int j = 0; j < ifExists.Count; j++) { ifExists.GetIfExists(j)?.SetNewContext(); } } }
private void SetCellsNewContext() { if (this.OwnerDataRegion.HasDataCells) { IDataRegionRowCollection rowCollection = this.OwnerDataRegion.RowCollection; if (this.GetIsColumn()) { for (int i = 0; i < rowCollection.Count; i++) { IDataRegionRow ifExists = rowCollection.GetIfExists(i); if (ifExists != null) { IDataRegionCell ifExists2 = ifExists.GetIfExists(this.MemberCellIndex); if (ifExists2 != null) { ifExists2.SetNewContext(); } } } } else { IDataRegionRow ifExists3 = rowCollection.GetIfExists(this.MemberCellIndex); if (ifExists3 != null) { for (int j = 0; j < ifExists3.Count; j++) { IDataRegionCell ifExists4 = ifExists3.GetIfExists(j); if (ifExists4 != null) { ifExists4.SetNewContext(); } } } } } }