return this.CheckRequiredFieldsInRow(ds, tableName, this.DataRow, 0, useErrorProvider);was changed to:
return this.CheckRequiredFieldsInRow(ds, tableName, this.DataRow, this.CurrentRow, useErrorProvider);Note that previously the error row was hard-coded to zero. In the updated code, this.CurrentRow is used instead.
public override bool CheckRulesHook(DataSet ds, string tableName) { bool result = true; int RowCount = ds.Tables[tableName].Rows.Count; for (int row=0; row<RowCount; row++) { this.DataRow = ds.Tables[tableName].Rows[row]; this.CurrentRow = row; if (this.DataRow["Quantity"] is Int16) { this.ValidateQuantity((System.Int16)this.DataRow["Quantity"]); } else { this.ValidateQuantity((int)this.DataRow["Quantity"]); } this.ValidateProductID((int)this.DataRow["ProductID"]); } return result; }Regards,