Example #1
0
        public void EnsureNodeVisible(IViewNode node)
        {
            JetListViewNode lvNode = node as JetListViewNode;

            if (lvNode != null)
            {
                _nodeCollection.ExpandParents(lvNode);
                GroupHeaderNode group = GetNodeGroupHeader(lvNode);
                group.Expanded = true;
            }
        }
Example #2
0
        private bool SearchEnumerator(string text, IEnumerator searchEnumerator,
                                      JetListViewNode stopNode)
        {
            while (searchEnumerator.MoveNext())
            {
                JetListViewNode curNode = (JetListViewNode)searchEnumerator.Current;
                if (curNode == stopNode)
                {
                    return(false);
                }

                if (_rowRenderer.MatchIncrementalSearch(curNode, text))
                {
                    _incSearching = true;
                    _rowRenderer.SearchHighlightText = text;
                    _nodeCollection.ExpandParents(curNode);
                    _rowListRenderer.InvalidateRow(curNode);
                    _selection.SelectAndFocusNode(curNode);
                    _incSearching = false;
                    return(true);
                }
            }
            return(false);
        }