PRB: DataGrid Control Does Not Return Contents of Edited Cell (195983)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
This article was previously published under Q195983 SYMPTOMS
The Microsoft DataGrid Control 6.0 (OLEDB) does not return the contents of
an edited cell.
Using the CellText properties of the Column object returns the original
value of the text currently in the cell and not the text the user has
edited. This behavior differs from the Data Bound Grid Control that returns
the value of the user-edited text.
This scenario may be problematic for a developer who would like to validate
the contents of the cell before the contents are placed in the recordset.
RESOLUTION
The DataGrid control provides a window handle to the cell being edited.
Using this handle and the GetWindowText API, the developer can get the
contents of the edited cell before the contents are saved in the recordset.
STATUS
Microsoft is researching this behavior and will post new information here
in the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbcode kbCtrl kbDatabase kbprb KB195983 |
---|
|