Required Field

Add the following to the GridColumn…

ValidationRules="@(new ValidationRules{ Required=true })"
<GridColumn Field=@nameof(InvestmentTransaction.Quantity) HeaderText="Quantity" Format="N0" TextAlign="TextAlign.Right" Width="100" ValidationRules="@(new ValidationRules{ Required=true })"></GridColumn>

Note: Make sure the required field is in the form or you will not be able to proceed to Save.

Last modified: June 5, 2021

Author

Comments

Write a Reply or Comment