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 object GetKey(object item) { return(WrappedList.GetKey((TItem)item)); }