Esempio n. 1
0
        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]);
        }
Esempio n. 2
0
 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);
     }
 }