While populating a ComboBoxFor to be inside a grid, if the name of the view data variable is the same as the id, validation will be ignored.
View:
columns.ForeignKey(p => p.JobNo, (System.Collections.IEnumerable)ViewData["JobNo"], "JobNo", "JobNumber");Controller:
public IActionResult Index() {ViewData["jobnumber"] = _ddservice.GetAllOrdersByOfficeIdDD(oid); return View(); }
