Microsoft KB Archive/810921

= BUG: You cannot use the Cut command and the Paste command with the Microsoft Windows DataGridTableStyles collection =

Article ID: 810921

Article Last Modified on 2/3/2006

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition

-



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.



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.
 * 1) Drag the DataGrid control from the toolbox to Form1.
 * 2) Right-click DataGrid, and then select Properties.
 * 3) In the Properties window, select TableStyles.
 * 4) Click Collection to open DataGridTableStyle Collection Editor.
 * 5) To add a DataGridTableStyle, click Add, and then click OK.
 * 6) Right-click DataGrid, and then select Cut.
 * 7) In the Designer pane, right-click Form1, and then select Paste.
 * 8) Examine the TableStyles property of the DataGrid.

Additional query words: datagrid IDE bug TableStyles

Keywords: kbbug kbwindowsforms kbuidesign kbcontrol kbdataobject kbvs2002sp1sweep kbvs2005swept kbvs2005doesnotapply KB810921

-

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

© Microsoft Corporation. All rights reserved.