Exemplo n.º 1
0
 protected virtual void OnValidateData(ValidateDataArgs e)
 {
     if (this.ValidateData != null)
     {
         this.ValidateData(this, e);
     }
 }
Exemplo n.º 2
0
 public int InsertRow(Row row, int insertIndex)
 {
     ValidateDataArgs e = new ValidateDataArgs(row, insertIndex);
     this.OnValidateData(e);
     if (!e.Skip)
     {
         insertIndex = e.InsertIndex;
         if (insertIndex < 0)
         {
             this.m_rcRows.Add(e.DataRow);
             return insertIndex;
         }
         this.m_rcRows.Insert(insertIndex++, e.DataRow);
     }
     return insertIndex;
 }