Microsoft KB Archive/313514

= BUG: AutoComplete Feature in Visual C# Project May Not Work with DataSets =

Article ID: 313514

Article Last Modified on 7/29/2002

-

APPLIES TO


 * Microsoft Visual C# .NET 2002 Standard Edition

-



This article was previously published under Q313514



SYMPTOMS
The AutoComplete feature in Visual C# may not work consistently with DataSets. When you type expressions that use a newly modified object, these expressions may not generate the AutoComplete dialog box, or the list in the AutoComplete dialog box may not include all of the exposed properties and procedures of the object.



CAUSE
This behavior occurs after you edit a DataSet and then save the changes.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Problem
 Create a new Windows project named &quot;Test&quot; in Visual C#. Add a DataSet item to the project; to do this, click Add New Item on the Project menu, and then click DataSet. Right-click the DataSet, and then add a new element to the DataSet (leave its name as the default, &quot;element1&quot;). Add a sub-element named &quot;mySub&quot; to element1; to do this, type mySub in the row below element1.

NOTE: Although you may select any datatype, the default should be String. Press CTRL+S to save the changes. Select form1.cs in Project Explorer, and then double-click the form to open the code window.</li>  Type the following lines of code in the Form1_Load event: DataSet1 ds = new DataSet1; ds.element1[0]. </li></ol>

When you type the second line of code, element1 is not displayed in the AutoComplete dialog box as a property after you type ds. . And when you type element1[0]. , mySub may not be listed in in the AutoComplete dialog box as a property.

Keywords: kbbug kbpending KB313514

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.