The Data Form Wizard does not display the "Choose the display style" panel in a Web Application project (820653)



The information in this article applies to:

  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual C# .NET (2002)

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.

MORE INFORMATION

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.
  2. In Solution Explorer, right-click WebApplication1, point to Add, and then click Add New Item.
  3. Under the Templates section, click to select Data Form Wizard, and then click Open.
  4. In the Welcome to the Data Form Wizard panel, click Next.
  5. 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.
  6. In the Choose a data connection panel, click New Connection.
  7. 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.
  8. In the Choose tables or views panel, expand Tables from the Available item(s) list, and then click to select Customers.
  9. 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.

REFERENCES

For more information, visit the following MSDN Web site:

Modification Type:MinorLast Reviewed:2/3/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbdisplay kbSystemData kbwizard kbSqlClient kbstyle kbWebForms kbDataBinding kbprb KB820653 kbAudDeveloper