FIX: You may receive an "IndexOutOfRangeException" error message when you use the SHIFT+UP ARROW key combination in a DataGrid control in Visual Studio .NET 2002 (825031)
The information in this article applies to:
- Microsoft .NET Framework 1.0 SP2
- Microsoft .NET Framework 1.0 SP1
- Microsoft .NET Framework 1.0
SYMPTOMSWhen 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)
at System.Windows.Forms.ThreadContext.System.Windows.Forms. UnsafeNativeMethods+IMsoComponent.FPreTranslateMessage(MSG& msg) RESOLUTION 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 STATUSMicrosoft 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.REFERENCESFor additional information, visit the following Microsoft Developer Network (MSDN) Web site: The Windows Forms DataGrid
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
320584
How to trap keystrokes in .NET controls by using Visual C# .NET
Modification Type: | Major | Last Reviewed: | 8/30/2004 |
---|
Keywords: | kbNetFrame100preSP3fix kbCtrl kbControl kbQFE kbfix kbbug KB825031 kbAudDeveloper |
---|
|