BUG: You cannot use the Cut command and the Paste command with the Microsoft Windows DataGridTableStyles collection (810921)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual C# .NET (2002)

SYMPTOMS

In Microsoft Visual Studio .NET IDE, when you use the Cut command and the Paste command on a DataGrid control, the TableStyles collection is lost.

WORKAROUND

To work around this problem, drag the DataGrid control on the Windows Form to the location that you want.

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 Behavior

  1. In Visual Studio .NET IDE, create a new Visual Basic .NET Windows Application project.

    Form1 is displayed on the Designer pane.
  2. Drag the DataGrid control from the toolbox to Form1.
  3. Right-click DataGrid, and then select Properties.
  4. In the Properties window, select TableStyles.
  5. Click Collection to open DataGridTableStyle Collection Editor.
  6. To add a DataGridTableStyle, click Add, and then click OK.
  7. Right-click DataGrid, and then select Cut.
  8. In the Designer pane, right-click Form1, and then select Paste.
  9. Examine the TableStyles property of the DataGrid.

Modification Type:MinorLast Reviewed:2/3/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbvs2002sp1sweep kbDataObject KbUIDesign kbBug kbControl kbWindowsForms KB810921 kbAudDeveloper