public override bool CheckRulesHook(DataSet ds, string tableName) { if (ds.Tables[tableName].Rows.Count > 0) { this.CurrentRow = 0; foreach (DataRow Row in ds.Tables[tableName].Rows) { OrdersEntity Entity = new OrdersEntity(); Entity.SetDataRow(Row); // Call validation methods this.ValidateCustomerID(Entity.CustomerID); this.ValidateShipName(Entity.ShipName); this.CurrentRow++; } } // Change this return value to indicate result of rule checking return this.ErrorProviderBrokenRuleCount == 0; }The CurrentRow property is used by mmBusinessRule to set the error row.