private RowItem MakeLive(RowItem rowItem) { if (rowItem.Value is GroupedRow) { return(rowItem); } int index = WrappedList.IndexOfKey(WrappedList.GetKey((TItem)rowItem.Value)); TItem item = index >= 0 ? WrappedList[index] : default(TItem); return(rowItem.SetValue(item)); }
public int IndexOfKey(object key) { return(WrappedList.IndexOfKey((TKey)key)); }