Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGrid and DataGrid 2

Status
Not open for further replies.

MarcelBeals

Programmer
Mar 29, 2000
18
CA
Can anyone tell me how to transform a DBGrid to a DataGrid?<br><br>I have been trying and trying.<br><br>We went from VB5 (E) to VB6 (P).<br><br>If someone can send me some simple code that would be great.<br><br>I am trying to pre-load the DataGrid so when I do a SSTAB to that form the data is all ready their.&nbsp;&nbsp;I also can update another field and change the DataGrid.<br><br>Can anyone help?<br><br>Marcel.<br><br><A HREF="mailto:beals@ocas.on.ca">beals@ocas.on.ca</A>
 
There are some significant differences between the DBGrid and the DataGrid, including:<br>*&nbsp;&nbsp;&nbsp;the DataGrid has no unbound mode.<br>*&nbsp;&nbsp;&nbsp;the DataGrid does not have the option to put buttons in some columns to trigger table look-ups (e..g to selet a product or an account)<br>*&nbsp;&nbsp;&nbsp;in bound mode the DBGrid requires a data control, while the DataGrid requires an object from the DBEngine object hierarchy (is it a QueryDef?), so you'd need to change the data access code in all forms which are being converted.<br><br>Do you need to convert?&nbsp;&nbsp;If you just installed VB6 on top of VB5 I'd expect the DBGrid's OCX and Registry entry still to be present.<br><br>If you're keen to avoid using out-of-date or unlicensed components, it might be worth getting the latest version of DBGrid&nbsp;&nbsp;-&nbsp;&nbsp;you'd have to pay, but it might save you man-months of re-coding.&nbsp;&nbsp;The economics would depend on the number of end-user PCs as each would require a DBGrid licence.<br>You can download an evaluation copy of the latest DBGrid from <A HREF=" TARGET="_new"> or check out <A HREF=" TARGET="_new"> which is the home page of Apex Software Corporation, the authors of DBGrid.<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top