/// <summary> /// Sets the owner of the current list view item. /// </summary> /// <param name="listview"></param> public void SetOwner(ListViewGrid listview) { if (_listview == null) { _listview = listview; } else { if (_listview != listview) { throw new InvalidOperationException("Cannot switch listview item's owner."); } } }
/// <summary> /// Creates a new instance of ListViewGridItemCollection. /// </summary> /// <param name="owner"></param> public ListViewGridItemCollection(ListViewGrid owner) { _listview = owner; }