When adding a new row, WebGrid is able to validate the row in order to prevent empty data input.
In this topic, you will learn how to prevent empty data input.
To prevent empty data input
- Bind WebGrid to AccessDatasource control. (Use Customers table).
- Open WebGrid.NET Designer and select Allow Add New.
- Switch to Advanced tab and select Columns.
- Select CustomerID and click See all properties.
- Set InputRequired to True and EditInfoText to Enter CustomerID (*required).
- Run the project.
Other Resources
Walkthrough Topics
How-to Topics