Microsoft KB Archive/820653

= The Data Form Wizard does not display the &quot;Choose the display style&quot; panel in a Web Application project =

Article ID: 820653

Article Last Modified on 4/24/2007

-

APPLIES TO


 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition

-





SYMPTOMS
When you use a Data Form Wizard in a Windows application, the Data Form Wizard offers you the following options in the Choose the display style panel that is displayed after the Choose tables and columns to display on the form panel:
 * All records in a grid
 * Single record in individual controls

You can select the option to display a single record or to display multiple records at a particular instance.

However, when you use the Data Form Wizard in a Web Application project, the Choose the display style panel is not displayed. Next is disabled after the Choose tables and columns to display on the form panel is displayed. You can click Finish in the Wizard after you select columns from the Choose tables and columns to display on the form panel.



CAUSE
This behavior occurs because the Data Form Wizard does not offer the Single record in individual controls option in Web applications. Therefore, the Choose the display style panel is not displayed in Web applications.



STATUS
This behavior is by design.



Steps to Reproduce the Behavior

 * 1) In Microsoft Visual Studio .NET, start a new ASP.NET Web application by using Microsoft Visual Basic .NET or Microsoft Visual C# .NET.

By default, WebForm1.aspx is created.
 * 1) In Solution Explorer, right-click WebApplication1, point to Add, and then click Add New Item.
 * 2) Under the Templates section, click to select Data Form Wizard, and then click Open.
 * 3) In the Welcome to the Data Form Wizard panel, click Next.
 * 4) In the Choose the dataset you want to use panel, type dataset1 in the Create a new dataset named text box, and then click Next.
 * 5) In the Choose a data connection panel, click New Connection.
 * 6) In Data Link Properties, type your local Microsoft SQL Server name in the Select or Enter a Server Name text box, click to select Northwind as the database in Select the database on the server, click OK, and then click Next.
 * 7) In the Choose tables or views panel, expand Tables from the Available item(s) list, and then click to select Customers.
 * 8) Click the greater than (>) button to add a Customer table, and then click Next.

Finish is enabled and Next is disabled in the Choose tables and columns to display on the form panel.

If you repeat these steps by creating a Windows Application project, Next is also enabled. When you click Next, the Choose the display style panel is displayed, and you can select the option to display a single record or to display multiple records at a particular instance.

