BUG: AutoComplete Feature in Visual C# Project May Not Work with DataSets (313514)



The information in this article applies to:

  • Microsoft Visual C# .NET (2002)

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.

MORE INFORMATION

Steps to Reproduce the Problem

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

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

Modification Type:MajorLast Reviewed:7/29/2002
Keywords:kbbug KB313514