AdvancedDataGridView.TreeGridView.OnRowsAdded C# (CSharp) Method

OnRowsAdded() protected method

protected OnRowsAdded ( System.Windows.Forms.DataGridViewRowsAddedEventArgs e ) : void
e System.Windows.Forms.DataGridViewRowsAddedEventArgs
return void
        protected override void OnRowsAdded(DataGridViewRowsAddedEventArgs e)
        {
            base.OnRowsAdded(e);
            // Notify the row when it is added to the base grid
            int count = e.RowCount - 1;
            TreeGridNode row;
            while (count >= 0)
            {
                row = base.Rows[e.RowIndex + count] as TreeGridNode;
                if (row != null)
                {
                    row.Sited();
                }
                count--;
            }
        }