Is there a way for me to manually set the ModelState.isValid = False from the controller?
ModelState.isValid = False
I have some code like this
Dim _region As
You can't set ModelState.IsValid directly, as it's a derived property that simply checks the models error collection. You can however add your own model errors, e.g:
ModelState.IsValid
ModelState.AddModelError("Region", "Region is mandatory");
ModelState.IsValid will then return false.