FIX: Data is not sorted correctly on a DataGrid control in a Windows application in the .NET Framework 1.1 (828099)
The information in this article applies to:
- Microsoft .NET Framework 1.1
NoticeSYMPTOMSWhen you add a DataGrid control to a Windows application that is created by using Microsoft Visual Studio .NET, and then you set the DataSource property of the DataGrid control, you may notice that the data is not sorted correctly after you delete a data record from the data source.RESOLUTIONSoftware update informationTo resolve this problem, obtain the latest service pack for the Microsoft .NET Framework 1.1. To download the latest service pack, visit the following Microsoft Web site:
WORKAROUNDTo work around this problem, follow these steps: - Locate the Bind method in the Form1.cs file:
frm.Controls.Add(dataGrid);
dataGrid.DataSource = dv; - Replace the code that you located in step 1 with the following code:
dataGrid.DataSource = dv;
frm.Controls.Add(dataGrid); - Rebuild the application, and then run the application.
You will not notice the behavior that is mentioned in the "Symptoms" section.
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.1 Service Pack 1.For more information, visit the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 10/25/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbBug kbNetFrame110sp1fix kbDataBinding kbWindowsForms kbtable kbDLL kbControl kbQFE kbNetFrame110preSP1fix kbfix KB828099 kbAudDeveloper |
---|
|