Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 501 Bytes

File metadata and controls

12 lines (8 loc) · 501 Bytes

keywords:if

Exercise - Input Validation Using if Statement

  1. In ShowProducts, override the OnSavingRow method.
  2. Using the MessageBox.Show show a message to the user if ProductName column is empty.
  3. Show a message if UnitsInStock is 0 or UnitsOnOrder is 0.
  4. Save changes to Git.
  5. Build and test.
<iframe width="560" height="315" src="https://www.youtube.com/embed/PEShmOEd-jI?list=PL1DEQjXG2xnL1VKb5GvdDwxJeym7Uj6S3" frameborder="0" allowfullscreen></iframe>