예제 #1
0
 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;
 }
예제 #2
0
 protected virtual void OnRowAdding(RowAddingEventArgs e)
 {
     if (this.RowAdding != null)
     {
         this.RowAdding(this, e);
     }
 }