private void LoadDataRow(DataRow dr) { this.IngredientID = Convert.ToInt32(dr["IngredientID"]); this.RecipeID = dr["RecipeID"].ToString(); this.IngredientName = dr["IngredientName"].ToString().Trim(); this.Quantity = Convert.ToDecimal(PortalUtility.CheckDbNull(dr["Quantity"])); this.UnitOfMeasure = dr["UnitOfMeasure"].ToString().Trim(); this.Notes = dr["Notes"].ToString().Trim(); this.SortOrder = Convert.ToInt32(dr["SortOrder"]); this.DisplayType = dr["DisplayType"].ToString(); }