Article ID: 825031 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
When you use the SHIFT+UP ARROW key combination in a DataGrid control, a problem may occur. When this problem occurs, you also have the ReadOnly property of the DataGrid control set to true. You also have all the rows in the DataGrid control selected.
You may receive the following error message:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Windows.Forms.DataGrid.ProcessGridKey(KeyEventArgs ke)
at System.Windows.Forms.DataGrid.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
To resolve this problem, obtain the latest service pack for the Microsoft .NET Framework 1.0. The following file is available for download from the Microsoft Download Center:
The Microsoft .NET Framework 1.0 Service Pack 3
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in the Microsoft .NET Framework 1.0 Service Pack 3.
Steps to reproduce the problem
For additional information, visit the following Microsoft Developer Network (MSDN) Web site:
The Windows Forms DataGrid
http://msdn2.microsoft.com/en-us/vbasic/ms789159.aspxFor additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/320584/ )How to trap keystrokes in .NET controls by using Visual C# .NET
Article ID: 825031 - Last Review: October 26, 2013 - Revision: 1.6