Intersoft WebGrid Documentation
How-to: Prevent empty data input
See Also Send comments on this topic.

Glossary Item Box

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

  1. Bind WebGrid to AccessDatasource control. (Use Customers table).
  2. Open WebGrid.NET Designer and select Allow Add New.
  3. Switch to Advanced tab and select Columns.
  4. Select CustomerID and click See all properties.
  5. Set InputRequired to True and EditInfoText to Enter CustomerID (*required).
  6. Run the project.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.