protected virtual void OnNodeExpanding(ExpandingEventArgs e) { if (this.NodeExpanding != null) { this.NodeExpanding(this, e); } }
protected internal virtual bool ExpandNode(TreeGridNode node) { if (!node.IsExpanded || this._virtualNodes) { ExpandingEventArgs e = new ExpandingEventArgs(node); this.OnNodeExpanding(e); if (!e.Cancel) { this.LockVerticalScrollBarUpdate(true); base.SuspendLayout(); this._inExpandCollapse = true; node.IsExpanded = true; foreach (TreeGridNode node2 in node.Nodes) { this.SiteNode(node2); } ExpandedEventArgs args2 = new ExpandedEventArgs(node); this.OnNodeExpanded(args2); this._inExpandCollapse = false; this.LockVerticalScrollBarUpdate(false); base.ResumeLayout(true); } return(!e.Cancel); } return(false); }