Article ID: 223062 - Last Review: October 15, 2002 - Revision: 1.1 FIX: DataGrid Will Not Add a New Record if Fields Set in CodeThis article was previously published under Q223062 On This PageSYMPTOMS
Rows will not be added to an ADO Data Control's Recordset if the field values are set programmatically in the OnAddNew event of the DataGrid.
CAUSE
This behavior was due to a bug in the DataGrid Control (msdatgrd.ocx).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are 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: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why (http://support.microsoft.com/kb/194022/EN-US/ ) 194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed (http://support.microsoft.com/kb/194295/EN-US/ ) MORE INFORMATIONSteps to Reproduce BehaviorThis code uses the Biblio database that comes with Visual Basic.
| Article Translations
|
Back to the top
