Microsoft KB Archive/223425

= PRB: DataGrid: I-Beam Cursor Does Not Show Up When Adding a New Record in the Grid =

Article ID: 223425

Article Last Modified on 1/11/2001

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q223425



SYMPTOMS
When trying to add a new row in the DataGrid, you might not be able to see the flashing I-beam Cursor in the new row. The same symptoms can occur when trying to edit the contents of any cell in the grid.



CAUSE
The row height of the DataGrid is too small to display the I-beam Cursor in the Grid.



RESOLUTION
You need to adjust the row height of the grid to be 195.0236 or more in order to be able to view the cursor. This can be done at run-time or design-time.



STATUS
This behavior is by design.



Steps to Reproduce Behavior

 * 1) Create a new Visual Basic 6.0 project. Form1 is created by default.
 * 2) Under Components on the Project menu, check the Microsoft ADO Data control (OLEDB) and Microsoft DataGrid control (OLEDB). Add an ADO Data control, and a DataGrid control to Form1.
 * 3) Set the appropriate properties for the ADO Data control to connect with the Server.
 * 4) Set the DataSource property for the DataGrid control to ADODC1.
 * 5) Right-click the DataGrid, click on Properties (or Custom property), and click the General tab. Select the AllowAddNew property check box.
 * 6) In the RowHeight text box, type 180.2835.
 * 7) Right-click the Datagrid control, click the Retrieve Fields menu option, and then click YES in the message box.
 * 8) Run the project or press the DataGrid: The I-beam Cursor does not show up when adding a new record in the F5 key.
 * 9) When you go to add a new a record, take note of the I-Beam cursor.

Keywords: kbprb KB223425

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.