private bool AddRowManually() { RowAddingEventArgs e = new RowAddingEventArgs(this.m_rcRows.Count); this.OnRowAdding(e); if ((e.Row != null) && !e.Cancel) { this.m_rcRows.Add(e.Row); } return e.Cancel; }
protected virtual void OnRowAdding(RowAddingEventArgs e) { if (this.RowAdding != null) { this.RowAdding(this, e); } }