Contents Index Topic Contents |
Insert the Grid and the RDS.DataControl Object
- Use your text editor to open the Tutorial.asp file in the C:\Program Files\Common Files\System\MSADC\Samples\Tutorial folder.
- Search for the words "Tutorial: RDS.DataControl Object." Copy the following script and paste it under this comment.
<OBJECT classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" ID=ADC HEIGHT=1 WIDTH = 1> </OBJECT>- Search for the words "Tutorial: Data Bound Grid Control." Copy the following script and paste it under this comment.
<BR> <Center> <OBJECT ID="GRID" WIDTH=600 HEIGHT=200 Datasrc="#ADC" CODEBASE="http://<%=Request.ServerVariables("SERVER_NAME")%>/MSADC/Samples/sheridan.cab" CLASSID="CLSID:AC05DC80-7DF1-11d0-839E-00A024A94B3A"> <PARAM NAME="_Version" VALUE="131072"> <PARAM NAME="BackColor" VALUE="-2147483643"> <PARAM NAME="BackColorOdd" VALUE="-2147483643"> <PARAM NAME="ForeColorEven" VALUE="0"> <PARAM NAME="AllowAddNew" VALUE="TRUE"> <PARAM NAME="AllowDelete" VALUE="TRUE"> <PARAM NAME="AllowUpdate" VALUE="TRUE"> </OBJECT> <BR>The DATASRC parameter in the grid control's OBJECT tag indicates that the data source will be the RDS.DataControl object
ADC
. This binds the grid to the returned Recordset and causes the grid to display data when the RDS.DataControl gets a Recordset. The AllowAddNew, AllowDelete, and AllowUpdate parameters enable the grid to take record additions, changes, and deletions from the user.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.