FIX: DataGrid Error Deleting Last Row From OSP Provider DataID: Q223082
|
If an OLE DB Simple Provider (OSP) is the bound DataSource for a Data Grid and an attempt is made to delete all the rows in the Data Grid, the following error is generated on the deletion of the last row:
Microsoft DataGrid Control: Error occurred while trying to delete record.
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
- ospsampb.dllNOTE: The Data Access SDK can be downloaded from the following location:
- sampleosp_vb.reg
- Microsoft ActiveX Data Objects
- Microsoft Data Adapter Library
- Sample OLE DB Simple Provider (Visual Basic 98)
- Microsoft DataGrid Control (OLE DB)
Dim da As New DataAdapter
Dim ds As New MyDataSource
Set da.Object = ds
DataGrid1.DataMember = App.Path & "\Customer.txt"
Set DataGrid1.DataSource = da
5;2
CustomerID;CompanyName;
WANDK;Die Wandernde Kuh;
WARTH;Wartian Herkku;
WELLI;Wellington Importadora;
WHITC;White Clover Markets;
WILMK;Wilman Kala;
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Matthew Hofacker, Microsoft Corporation
Additional query words:
Keywords : kbservicepack kbCtrl kbDataBinding kbOLEDB kbVBp600bug kbVS600sp2 kbVS600SP1 kbVS600sp3fix kbGrpVBDB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 20, 1999