PRB: Grid DTC's Underlying Recordset Changes Are Lost (190674)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q190674 SYMPTOMS
Any changes made to the current record of the Grid Design-Time Control's (DTC's) underlying recordset are lost when one of the Grid DTC's navigation buttons is clicked. Thus, if you make changes to the values in DTC's bound to the same Recordset as the Grid and click a navigation button, the underlying Recordset is not updated.
CAUSE
The updateOnMove properties of the two intrinsic Recordset Navbars of the Grid DTC are set to false by default.
RESOLUTION
The Grid DTC exposes the getPagingNavBar and getRecordsetNavbar methods to allow you to script against its intrinsic Recordset Navbars. You can use these two methods to turn on the updateOnMove property of the Recordset Navbars.
The following sample "thisPage_onenter" event handler successfully
turns on updateOnMove for the intrinsic Recordset Navbars of a Grid DTC in an Active Server Pages (ASP) page:
<SCRIPT LANGUAGE=JavaScript RUNAT=Server>
function thisPage_onenter() {
Grid1.getPagingNavbar().updateOnMove = true;
Grid1.getRecordsetNavbar().updateOnMove = true;
}
</SCRIPT>
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
---|
Keywords: | kbCtrl kbDatabase kbprb KB190674 |
---|
|