FIX: DataGrid Control Row Property Fails to Update for Last Row (294166)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP3
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4
This article was previously published under Q294166 SYMPTOMS
The Row property of the DataGrid control may not consistently reflect the correct row number of the last blank row. If the last row is blank (that is, if there is a blank row at the bottom of the DataGrid with an asterisk in the box to the left of the blank row to indicate that you may add a new record in the DataGrid), and if you use Row Selectors (the boxes next to rows in the DataGrid, which allow you to select entire rows) to select the non-blank rows, the incorrect row is displayed when you repeatedly select between the last row and another row of the DataGrid.
However, the value of the Row property is the previous non-blank row that you selected; that is, the Row property is not updated when you click the last, blank row. If you check the Row property in the RowColChange event of the DataGrid, for example, the RowColChange event fires correctly, but the Row property fails to update; thus, the row number of the last blank row is not consistently updated.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 5. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbbug kbCtrl kbDataBinding kbfix KB294166 kbAudDeveloper |
---|
|