GridCheckMarksSelection GetDetailSelectionHelper(int masterRowHandle, int relationIndex) { DetailKey key = new DetailKey(masterRowHandle, relationIndex); if (!detailSelections.ContainsKey(key)) { detailSelections.Add(key, new GridCheckMarksSelection(null, this)); } return(detailSelections[key]); }
bool AreAllRowsSelected() { if (View != null) { return(SelectedCount == View.DataRowCount); } else { DetailKey key = parentSelection.detailSelections.FirstOrDefault(x => x.Value == this).Key; return(SelectedCount == _parentView.DataController.GetDetailList(key.MasterRowHandle, key.RelationIndex).Count); } }