public void CheckValues(itemRow row) { if (row.IsNull("sku") || row.sku.Trim().Length == 0) { row.SetColumnError("sku", "Enter sku"); } else { row.SetColumnError("sku", ""); } if (row.IsNull("short_desc") || row.short_desc.Trim().Length == 0) { row.SetColumnError("short_desc", "Enter item description"); } else { row.SetColumnError("short_desc", ""); } // if (row.IsNull("plu") || row.plu <= 0) // { // row.SetColumnError("plu", "Enter plu"); // } // else // { // row.SetColumnError("plu", ""); // // } if (row.IsNull("tax_group_id") || row.tax_group_id.Trim().Length == 0) { row.SetColumnError("tax_group_id", "Select_tax_group"); } else { row.SetColumnError("tax_group_id", ""); } if (row.IsNull("amount") || row.amount <= 0) { if (row.IsNull("pricing_opt") || row.pricing_opt != 3) { row.SetColumnError("amount", "Enter price"); } else { row.SetColumnError("amount", ""); } } else { row.SetColumnError("amount", ""); } //if ( (row..amount <= 0)) //{ // row.SetColumnError("amount", "Enter price"); //} //else //{ // row.SetColumnError("amount", ""); //} }
public itemRowChangeEvent(itemRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }