Intersoft WebGrid Documentation
Walkthrough: Adding new data where a column's data type is AutoNumber
See Also Send comments on this topic.

Glossary Item Box

This walkthrough shows you how to add new data using AccessDataSource control, where one of the columns data type is AutoNumber.

During this walkthrough, you will learn how to do the following:

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Access to the Microsoft Access Northwind database.
  • Visual Studio 2005 Application.

 Step-By-Step Instructions

To create new web application and add new data into the WebGrid

  1. Binding WebGrid to AccesDataSource control. (Use Products table)
  2. Right click on WebGrid instance and choose WebGrid.NET Designer.
  3. In WebGrid.NET Designer - Quick Start - Popular Settings, tick Allow Add New.
  4. Save and run the project.
  5. Click on the NewRow section and add all the information needed but leave ProductID column blank/empty.



  6. Press Shift + Enter to add the new row. Notice that the ProductID will be set as auto-increment according to the previous one.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.