internal virtual bool ExpandNode(TreeGridNode node) { if (node.IsExpanded && !this.VirtualNodes) { return(false); } 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); } this.OnNodeExpanded(node); this._inExpandCollapse = false; this.LockVerticalScrollBarUpdate(false); base.ResumeLayout(true); base.InvalidateCell(node.Cells[0]); } return(!e.Cancel); }
private void OnNodeExpanding(ExpandingEventArgs e) { this.NodeExpanding?.Invoke(this, e); }