BrightIdeasSoftware.ObjectListView.SelectObject C# (CSharp) Method

SelectObject() public method

Select the row that is displaying the given model object, in addition to any current selection.
Use the SelectedObject property to deselect all other rows
public SelectObject ( object modelObject, bool setFocus ) : void
modelObject object The object to be selected
setFocus bool Should the object be focused as well?
return void
        public virtual void SelectObject(object modelObject, bool setFocus)
        {
            OLVListItem olvi = this.ModelToItem(modelObject);
            if (olvi != null) {
                olvi.Selected = true;
                if (setFocus)
                    olvi.Focused = true;
            }
        }

Same methods

ObjectListView::SelectObject ( object modelObject ) : void
ObjectListView